|
|
Worth a try. Is there a patch to debug static variables for vc6 (preprocessor pack)? The only one I have is for sp5.
/Martin
|
|
|
|
|
Hei,
Register the VC6 environment variables and see if that fixes your problem.
Best Wishes,
-David Delaune
|
|
|
|
|
Martin966 wrote: It is not possible to exit VC from the task manager or kill the msdev process
Try using Process Explorer from sysinternals. It's more effective than Task Manager at killing tasks. Though I can't guarantee that it will kill msdev. It does, however, kill VS 2005 when task manager fails so I'm assuming that it will work for msdev too.
Kevin
|
|
|
|
|
Hi all,
I am trying to a add a Regitry Entry using MFC api's.
Suppose i want to give my program file address to the registry value.....
Its not taking full address its just taking 25 characters
for example:-
C:\Program Files\Data
Can anybosy please help me in this.....
|
|
|
|
|
neha.agarwal27 wrote: I am trying to a add a Regitry Entry using MFC api's.
Can you please show us the relevant code? Because
1. We can't answer solely on assumptions
2. And there's a pillar right next to your cubicle, so I am not able to see your monitor.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i think u r buffer size may be 25 characters or u r writing only 25 characters
|
|
|
|
|
neha.agarwal27 wrote: I am trying to a add a Regitry Entry using MFC api's.
MFC has an API for the registry?
.
neha.agarwal27 wrote: Suppose i want to give my program file address to the registry value.....
Its not taking full address its just taking 25 characters
for example:-
C:\Program Files\Data
Be aware that RegSetValueEx 's cbData parameter should be the size of the string expressed in bytes, i.e. (string length + 1)*2 for UNICODE strings.
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
|
|
|
|
|
Thanks for your reply.....
it worked fine with my code....
now my problem is my code is creating registry enteries fine in xp but its not creating it in vista but when i run my program as administrator it creates the enteries....
how can i remove my problem...
|
|
|
|
|
Hence run the program as administrator.
Seriously, I don't know. Maybe you'll have more luck on Vista[^] forum.
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
|
|
|
|
|
and when i am trying to add binary entry(REG_BINARY), like if i want to add 11 01 10 11 then in registry only 00 00 00 00 is added....
can you tell me the problem
|
|
|
|
|
Could you please post the relevant code?
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
|
|
|
|
|
RegCreateKeyEx ( hkey, (LPCTSTR) str1, 0, NULL, REG_OPTION_NON_VOLATILE,
KEY_CREATE_SUB_KEY | KEY_ALL_ACCESS, NULL, &childkey, &dispos ) ;
RegSetValueEx ( childkey, (LPCTSTR)str2, 0, valur_type, (const BYTE*) (LPCTSTR)str4, (str4.GetLength()+1)*2 ) ;
RegCloseKey ( childkey ) ;
|
|
|
|
|
I don't see any REG_BINARY in your code.
BTW To maintain generic text mappings, I suggest you to change from (str4.GetLength()+1)*2
to (str4.GetLength()+1) * sizeof(TCHAR) .
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
|
|
|
|
|
|
Hi,
My Project is set to unicode aware, and it is fine. But when i am go for displaying a text in static control in run time, like
CStatic *p = (CStatic *)GetDlgItem (IDC_STATIC1);
p->SetWindowText ("&Login");
The text on static control should display the text as Login and the letter "L" should accompany a underline;
It is working fine with MBCS projects but not with UNICODE, How to resolve this issue?
Anyone please help,
Thanks in advance!!!!
|
|
|
|
|
ganesa moorthy wrote: It is working fine with MBCS projects but not with UNICODE
Please when you have a problem, give a clear description. It's not working is quite vague, there could be a lot of different situations. I suppose here that your code doesn't compile.
Add a _T macro in front of your string literal:
p->SetWindowText (_T("&Login"));
|
|
|
|
|
it is fine if i give p->SetWindowText(L"&Login");,
Thanks a lot once again!
Thanks a lot
|
|
|
|
|
I am very new in VisualC++. I need someones help to plot the cosine wave. I can generate the amplitude at each time stamps but i dont know how to use those data draw the graph using visual C++6.
I badly need the solution.
thanx
shohel
|
|
|
|
|
If you are new to MFC, I stronly recommand to use an existing control. Doing it yourself is of course possible but it will probably take you much more time than you expect.
If you are interested, you can take a look at my sig, there a link to a chart control that I developped.
|
|
|
|
|
|
There's your good friend GDI [^] for that.
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
|
|
|
|
|
|
|
How to convert FileTime variable to uLongLong?
|
|
|
|