sorry confusing it.
i want to show a button in my windows form on runtime, and its style is like the edit status when you create application resource in VS ide window, can resize, rename caption, modify its property.
i am making on a banking project which is based on desktop application
in which we want to provide passward to each customer
but how wiil we provide passward to customer so that when user enter the passward
then employee unable to see that passward
and after entering the passward the bank teller can see the hole informatin about the bank
sir i am working with c as a front and file system for data storage
I am trying to find a way to spawn a process that will continue running once I log off.
A previous post ended up giving me a solution : services. I tried this out, and it solves
the problem as it was stated - the service continues to run when I log off.
However, I need Admin privileges to start / stop the service - which is not exactly the type of privileges my customers have.
which is not exactly the type of privileges my customers have.
Hi again Andy,
The last two parameters of CreateService[^] gives you provision to set a user name and password. But I am not sure at what happens when you logoff the same user.
The doc says,
pServiceStartName [in, optional]
The name of the account under which the service should run. If the service type is SERVICE_WIN32_OWN_PROCESS, use an account name in the form DomainName\UserName. The service process will be logged on as this user. If the account belongs to the built-in domain, you can specify .\UserName.
pPassword [in, optional]
The password to the account name specified by the lpServiceStartName parameter. Specify an empty string if the account has no password or if the service runs in the LocalService, NetworkService, or LocalSystem account. For more information, see Service Record List.
I am using Visual Studio 8.
I created two win32 empty project and created C "Mylib.c" "MyWrapperlib.c" file to get static library Mylib.lib and MyWrapperlib.lib.
I created another win32 empty project and when i link the static library "MyWrapperlib.lib" (with Mylib.lib and MyWrapperlib.lib in library path) with simple C code "TestApp.C" with main(), it is working fine.
I have used windows.h in "Mylib.c" and "MyWrapperlib.c" for FILE operations.
I want to have a GUI application, so I created NewProject->CLR->Windows Forms Application (MyUIApp.Cpp). When i used MyWrapperlib.lib, it gave linking error.
so I created DLL for MyWrapperlib.c by using #define dllexport __declspec(dllexport)
enclosing with extern C
When i use MyWrapper.dll in MyUIApp.Cpp, it is giving below error
"fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B0"
Can some guide me how to create 'C' lib/dll and use it with GUI application.
I want to have a GUI application, so I created NewProject->CLR->Windows Forms Application (MyUIApp.Cpp).
Should have used MFC, then you'd have native code throughout, so you could have used your static library.
However - you can link C++/CLR modules against your static library (meaning you don't need the DLL). In your project proerties, change the "Common Language Runtime support" option to "Common Language Runtime Support (/clr). Worked for me, anyway.
In addition to Cedric's reply - the version of the Platform SDK that comes with VS2005 (Standard and above) will be from 2005 (when VS2005 was released). This means that it won't be able to access features that came with Vista. If you do want to access features from Vista, then you'll need to install a later version of the PDK.