as you are brandnew to VFP I wholeheartedly Welcome you to the community of Foxers. No doubt you will find the fox community worthwhile and helpful in many ways!
as to your Question
go step by step[idea],
first, set up your development environment.
I suspect that you are not using a framework...
basically an INI file looks like:
[Section]
key=value
BAsically you need two functions to write to and read from an inifile
Those functions are:
GetPrivateProfileString and WritePrivateProfileString
Both reside in the Kernel32
WritePrivateProfileString has 4 parameters
cSectionName
cKeyname...
basically an INI file looks like:
[Section]
key=value
You need two functions to write to and read from an inifile
Those functions are:
GetPrivateProfileString and
WritePrivateProfileString
Both reside in the Kernel32
WritePrivateProfileString has 4 parameters
cSectionName...
Have you tried the SetDefaultPrinter() function in the ADVAPI.DRV?
Here is how it works.
LOCAL lcOldPrinter as String, lcNewPrinter as String
DECLARE integer SetDefaultPrinter in ADVAPI.DRV String
lcOldPrinter = set("Printer",2)
lcNewPrinter = getprinter()...
Sure,
Read the registry. Under HKEY_CLASSES_ROOT you'll find a section CLSID
You might find nodes there that look like HKEY_CLASSES_ROOT\CLSID\{0713E8A2-850A-101B-AFC0-4210102A8DA7}
Under those nodes you might find a subnode like INPROCSERVER32 (in this case the treeview), and a node TypeLib...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.