Look, people here are willing to help but if you don't want to put any effort yourself, then you can forget about it. The article I linked to you contains a lot of information about unicode and non-unicode builds. Once you have read the article, you will understand that to support both unicode and non-unicode builds, you will need to use TCHAR (and not char) and all the unicode-independant string manipulation routines (instead of strcpy, strlen, strtok, ...). For ALL of those functions, if you look in the MSDN documentation, you have a table that compares the different versions. You always have to use the "TCHAR.h routine" version.
It looks like you're doing a UNICODE build, but, neverthless, userid is declared as char * (or char userid) insetad of TCHAR * and, moreover, you're not using the generic text equivalent of strtok (i.e. _tcstok).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
I m creating a dialog base application and running it in hide mode.the GUI of application not visible.
Application wants a permission to run as admin.
i want this application when i execute the application on any PC than its running over it till the PC opened,when the system restart than its automatically start with system.I think it is done by Window service.
but i have no idea of Window service.
I m also add this exe vaule in registry for startup its works fine but in case of UAC enabled in VISTA the strtup program is blocked because its not have permission to run as admin.
so please tell me how can i run it on startup with admin permission.
and tell me how can i run it over PC every time.
please suggest me right way and method to do this.
if possible please explain me with example.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
if you don't want to show gui part to user and run your program in background services are best choices, there are numerous application available on net which can your program as service (without actually modifying your source code). search " running executable as service" on net
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
I want to write a web camera driver by using DriverStudio, but I can't find usfull instruction of how to write a camera driver. Will somebody be kind enough to give me some information. Thank you very much!