-
quite a challange !
hello everyone !!
i've a very typical problem. i've calling a VC++ exe from VB. in VC program i'm writing to a file, which i'm reading in VB. currently i've given fixed path for file in VC. this is a major bug in making VB setup exe.
how can i pass the filepath from VB to VC ?? i tried command line arguements, but it didn;t work and i was running into major fatal errors as i'm passing other command line arguements as well.
can anyone pls tell me some way to fix this. to be abl e to pass file path to VC from VB
thanks
shruti !!!
-
I think the problem is the recieving end (i.e. VC), since the reciever has to understand whats coming!
To send command strings just put them after the exe-name when you do the shell command.
-
My exp with C++ and VB, the less you pass between, the better.
I'd have the VB app write an INI file with the path in it,
then have the C++ program pick up the info there.
Its' an oldie but a goodie.
either an INI file, or just a plain text file in the C++ directory that specifies the location of the drop file.
-
Or you could do like windows and use the registry. I use it all the time..
It works better than an INI file, more secure I think..
Rudy
:)
-
ya, i was also thinking of an ini file or registry.
but with ini file, how will VC know the path of ini file ?? i was not sure whether it'll pick from the current directory ??
may be windows registry is more safe. can u pls tell me how to go abt it. how shud i writ path in registry from VB and then access it from VC. i dont know how to go abt it !!
thanks
shruti !
-
See the Use SaveSetting and GetSetting to store and retrieve data from the Registry link in my signature.
-
ya... that worked i've done the registry settings
thanks !!!!