|
hi
you can build ActiveX control with MFC ActiveX control wizard.so it is not a big deal.
main thing is to show it in browser.
for that you have to sign your activeX control.other wise it wont be shown due to default security settings of the browser wont let it(unsigned ActiveX control) execute.
to sign your control for testing purpose you can use codesigning SDK.
sanket patel
|
|
|
|
|
I am getting this error by compiler when I compile my code in VC.NET. Note it was previously compiled correctly in VC 6.0 .
e:\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxdlgs.h(430): error C2146: syntax error : missing ';' before identifier 'm_pdex'
Any reason. I shall be very grateful.
Best Regards,
|
|
|
|
|
Hi,
In stdafx.h
Try changing WIN_VER to 0x0501, which is Windows XP and 2003 specific.
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
Hi everyone,
I am trying to create an array dynamically with CString, here is an example:
<br />
CString *a = new CString [nSize];
<br />
<br />
delete a;<br />
<br />
but I catch an exception ....
Would you mind suggest the problem here?
Thanks a lot~
|
|
|
|
|
oops ... I am foolish
I should use CStringArray with SetSize()
|
|
|
|
|
Did you try this?
delete[] a;
|
|
|
|
|
Hi,
Always follow the rule
a = new => delete a
a = new [] => delete a[]
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
delete a[]; is the clue
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|
|
Really suddenly forget delete array should use delete [] =.=
foolish me
thanks everyone~
|
|
|
|
|
Hi
i have a shell extension dll which i am using as a Drag drop handler . i have built the DLL using the x64 settings . Although the DLL is getting registered the shell extension doesnt perform any function when drag drop is performed . Any idea on how to overcome this
Thanks in advance
|
|
|
|
|
Hi,
I have a question.When I run my program ,it has no problem. After I send it to surcesafe, it can not run rightly.In my program ,there are three button in my dialog, and each button will active another dialog. And the program is " m_ToolDialog.DoModal()". After sending it to sourcesafe, when pressing the button in the dialog, the dialog will not show. And the error is :"Debug Assertion Failed! File: dlgdata.cpp line:43 Stop, Retry, Ignore ", what is the problem? why in my compute my program can run rightly, when sending it to souresafe ,it will show error?
thanks
xiaoyan liu
|
|
|
|
|
liuxiaoyan0603 wrote: After sending it to sourcesafe, when pressing the button in the dialog, the dialog will not show. And the error is :"Debug Assertion Failed! File: dlgdata.cpp line:43 Stop, Retry, Ignore", what is the problem?
Please check it there is any rc file or not
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi,
i open a excel file through code ,but it shows up a dialog box and says it contains a link to other data source do we need to update ,but this is odd since if the user selects 50 files the dialog comes 50 times is there any Method of application by which i can supress these messages.
Thanx in advance
Farpointer
|
|
|
|
|
We have an EditBox control. We have the following questions:
1. Is it possible to paste different characters (say, 1 japanese, 1 chinese, 1 spanish, 1 hindi and 1 arabic) in the control without changing the characterset or the locale? MS Word does the same. Any idea how it can be done?
2. Is there any generic/universal characterset that supports most of the fonts and the unicode standard?
3. What does UCS do and how it is used?
Sanghamitra
|
|
|
|
|
Hi,
How could I block the enabling of a window by tracking wm_ messages in the wndproc?
Thank you.
- NS -
|
|
|
|
|
Hi
I need to get the process id of a specific application say NOTEPAD which is currently running. Prior to that i need to get all the process which are running in the system currenlty as we can see in the task Manager processes list.
Regards
Anniyan
|
|
|
|
|
cuteanniyan wrote: I need to get the process id of a specific application say NOTEPAD which is currently running. Prior to that i need to get all the process which are running in the system currenlty as we can see in the task Manager processes list.
try this
http://www.codeproject.com/useritems/process_listing.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi
I guess i dont have the library psapi.lib. Am getting error undeclared identifier for numProcesses(). How can i get this library.
Regards
Anniyan
|
|
|
|
|
cuteanniyan wrote: I guess i dont have the library psapi.lib. Am getting error undeclared identifier for numProcesses(). How can i get this library.
Download Platform SDK from MS site or
try this Non PSDK api :- CreateToolhelp32Snapshot followed by Process32First and Process32Next
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi Alok
I have downloaded and installed Platform SDK. I have setup all the paths. But still it is giving linker error saying
"error LNK2001: unresolved external symbol _EnumProcesses@12
fatal error LNK1120: 1 unresolved externals"
Am using VC 6.0
Regards
Anniyan
|
|
|
|
|
cuteanniyan wrote: "error LNK2001: unresolved external symbol _EnumProcesses@12
fatal error LNK1120: 1 unresolved externals"
Insert this code in your cpp file.
#pragma comment(lib,"Psapi.lib")
actually problem is, you forget to include the library file which has defination of EnumProcess api
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi Alok
Am sorry to bug you. I am an amateur and starter in VC.
Still i am getting the same linker error. Can i get list of things i need to check.
Regards
Anandan
|
|
|
|
|
cuteanniyan wrote: Am sorry to bug you. I am an amateur and starter in VC.
Hain don't need to be Sorry... I am too Amateur in VC.
cuteanniyan wrote: Still i am getting the same linker error. Can i get list of things i need to check.
Anyways, it will be better to use these apis CreateToolhelp32Snapshot(...),Process32First(...) and Process32Next(...), here is code snippet to achieve same. here, m_mapProcesses is type map<CString,DWORD> m_mapProcesses;
HANDLE hProcess;
PROCESSENTRY32 ppEntry;
ZeroMemory(&ppEntry,sizeof(ppEntry));
ppEntry.dwSize=sizeof(ppEntry);
hProcess=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,NULL);
if(INVALID_HANDLE_VALUE==hProcess)
return FALSE;
if(!::Process32First(hProcess,&ppEntry))
{
CloseToolhelp32Snapshot(hProcess);
return TRUE;
}
BOOL bTrue=TRUE;
while(bTrue)
{
this->m_mapProcesses[ppEntry.szExeFile]=ppEntry.th32ProcessID;
if(GetLastError()==ERROR_NO_MORE_FILES)
{
CloseToolhelp32Snapshot(hProcess);
return TRUE;
}
bTrue=Process32Next(hProcess,&ppEntry);
}
CloseToolhelp32Snapshot(hProcess)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I migrated a VS2002 solution to VS2005 (MFC application with some DLLs). It compiles without any problem - the warnings from _tcscpy and such methods was fixed. However I can't run the application because it can't locate the MFC80UD.DLL module. When I check the application in Dependency walker it loads without any problem. Even in the Debugger's output window I can see that the given modul loaded the symbols. It reports:
Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process load
I also tried to move the MFC module to System32 folder however it caused another failure during the application start - some manifest issue. To be honest I do not understand this - at least I don't know how to fix it. I just know that this stuff solves the DLL hell problem - different versions of the same DLL.
Any idea what is wrong?
Thanks,
Abyss
|
|
|
|
|
I continued with my investigation and found that if I copy the missing MFC80UD.DLL module from the WinSxS folder to the application's folder then the debugger shows the following:
'App.exe': Loaded 'C:\Out\App.exe', Symbols loaded.
...
'App.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80ud.dll', Symbols loaded.
...
'App.exe': Loaded 'C:\WINDOWS\system32\winspool.drv', No symbols loaded.
Here the module not found message is displayed if the MFC module is not at app folder.
'App.exe': Loaded 'C:\Out\mfc80ud.dll', Symbols loaded.
Well and I'm surprised, because the MFC module gets loaded twice. Can explain anybody why?
Thanks,
Abyss
|
|
|
|