|
I have figured it out...
The service must be interactive in order to be able to install a keyboard hook.
|
|
|
|
|
I have a problem when i create a NT Service that is based on a MFC SDI application.
The application uses the CNTService from the sample from Nigel Thompson.
The problem is that i can't get the GUI to work correct and the GUI are not shown when I log on to my computer.
|
|
|
|
|
I'm new to services, but have you set m_dwServiceType to SERVICE_INTERACTIVE_PROCESS?
Hope this helps.
|
|
|
|
|
I allready have this flag set so that dosen't help.
|
|
|
|
|
You must to set the service in Interactive mode.
Best Regards.
Carlos Antollini.
Pi Five[^]Creator
Sonork ID 100.10529 cantollini
|
|
|
|
|
Hi,
How can I "lock" toolbars and controlbars in place in an application, so the user can resize them, but cannot move them around?
Thanks!
"No one goes to hell because of their sin, but because of rejecting God's method of salvation: His Son's life for yours..."
"It does not take a majority to prevail ... but rather an irate, tireless minority, keen on setting brushfires of freedom in the minds of men." --Samuel Adams
|
|
|
|
|
I have to use an application that uses DAO interface
on a machine (WINNT 4.0) where Access is not installed.
What have I to do in order to let this application work ??
I know that DAO350.DLL and/or DAO360.DLL files must be installed
in the machine, but, is required only files presence or they
must be registerd in the system registry ??
How can I install that DLLs ???
Thank a lot !!!!
|
|
|
|
|
NO, you need a list of several libraries, like jet librarys, error librarys, etc.
Check in your last cd of the Visual Studio 6.0, you will can find the Dao SDK,
into it you will can find a simple installer for dao libraries. I don't remember the name of the package y remmber that have a size of 4 or 5 MB...
Best Regards
Carlos Antollini.
Pi Five[^]Creator
Sonork ID 100.10529 cantollini
|
|
|
|
|
Hello,
I have a problem with pointers.
I want to convert a static array to a dynamically created one. With one dimension, this is easy:
unsigned char array[8000];
would be
unsigned char *array = NULL;
...
array = new unsigned char[8000];
...
delete []array; array = NULL;
This is easy. But how do I convert a static array which has
more than one dimension, lets say 2?
unsigned char array[100][100];
would be what?
-Dominik
|
|
|
|
|
depends:
1. //unsigned char array[100][100];
unsigned char** array = new char [100][100];
...
delete []array; array = NULL;
2. //unsigned char array[100][100];
unsigned char** array = new char* [100];
for(int i = 0; i < 100;++i)
array[i] = new char[100];
...
for(int i = 0; i < 100;++i)
delete[] array[i];
delete []array; array = NULL;
|
|
|
|
|
Works
Thank you very much!!!
-Dominik
|
|
|
|
|
imagine you are coding amutithreads server so all client you create a socket and a new threads to handle the connexion
so imagine that your program is a chat program.
my problem is that i would like to know how can you do for the public message.Indeed one of your threads migth receive a message and how can you talk to other threads containig the connexion , to send the message to ii socket.
So that all other client will receive the message reacieved by this thread's connexion.
if you think that you can't , that means that you can : if you understand this there youn can
|
|
|
|
|
|
please can you be more relevant please i'm so confious may be a piece of code
if you think that you can't , that means that you can : if you understand this there youn can
|
|
|
|
|
MSDN : MultiSoc : Illustrates Using Sockets in Multiple Threads
MSDN(SDK) : Power Outlets in Action: Windows Sockets
|
|
|
|
|
MSDN: CHATSRVR Sample: Demonstrates a Windows Sockets Server
|
|
|
|
|
i did not find the mutliSoc article can you give me the link please
if you think that you can't , that means that you can : if you understand this there youn can
|
|
|
|
|
http://download.microsoft.com/download/vc60pro/Sample4/1/WIN98/EN-US/MultiSoc.exe
|
|
|
|
|
The problem is that all data that i save in the registry is gone after windows (2000) is restarted. All data appears to be ok after the application closes. But after the restart the key is completely gone.
The code used in the app:
Opening the key:
HKEY hKeyRoot = HKEY_CURRENT_USER;
LPCTSTR pszPath = "Software\\Companyname\\My App Name\\Settings"
HKEY hKey;
DWORD dw;
RegCreateKeyEx(hKeyRoot, pszPath, 0L, NULL, REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, &dw);
Writing:
int iValue = 8;
LPCTSTR pszKey = "MyInteger";
hKey as returned by RegCreateKeyEx
RegSetValueEx(hKey, pszKey, 0L, REG_DWORD, (CONST BYTE*)&iValue, sizeof(int));
Does anyone know how to prevent this and why it happens?
Thanks
I'm smart enough to know that i'm stupid and i'm stupid enough to think that i'm smart
|
|
|
|
|
you must change the REG_OPTION_VOLATILE to KEY_ALL_ACCESS.
Hope this helps...
|
|
|
|
|
The KEY_ALL_ACCESS is the next argument
|
|
|
|
|
I must sleep more! sorry...
|
|
|
|
|
You have to create RegKey using options 'REG_OPTION_NON_VOLATILE' instead of 'REG_OPTION_VOLATILE'.
For more details, Check RegCreateKeyEx API in MSDN.
If you are developing MFC/ATL based app...you can use CRegKey for easy registry access.
Hope this helps.
Ramu
|
|
|
|
|
This solves the problem
thanks
|
|
|
|
|
this way is how I do it:
HKEY hKey;
int iLength = 0;
CString csPathSubClau = "";
iLength = csNouValor.GetLength();
csPathSubClau.Format("%s\\%s",m_csPathBase,csSubClau);
RegOpenKeyEx(HKEY_LOCAL_MACHINE,csPathSubClau,0,KEY_ALL_ACCESS,&hKey);
RegSetValueEx(hKey,csValor,0,REG_SZ,(BYTE *)csNouValor.GetBuffer(iLength),iLength);
RegFlushKey(hKey);
RegCloseKey(hKey);
|
|
|
|