|
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
|
|
|
|
|
I have a C++ app that includes a 3rd party library that has a type called
'System'. This class exists in a namespace, let's call it XYZ::System.
Then I am compiling my C++ app with /clr and somehow when VC8 includes
xlocale (which in turn uses a macro defined in yvals.h) that calls a method in .NET (System.bla.bla) there is an ambiguity.
How can I resolve this easily?
|
|
|
|
|
Hi,
You probably used the using directive the simplefy the usage of the System class like this:
using namespace XYZ;
void Function()
{
System obj;
...
} This indeed conflicts with the System Namespace of .Net.
In this case you will have to remove the using directive and use the System class like this:
void Function()
{
XYZ::System obj;
...
}
Or
If the third party library is a type library like the ado objects then you could try to use the rename directive and change the System class while importing the type library like this:
#import "XYZ.dll" rename("System", "XSystem")
...
using namespace XYZ;
void Function()
{
XSystem obj;
...
}
Hope this solves your problem
codito ergo sum
|
|
|
|
|
Thanks, the 3rd party library is actually a static lib but I do have the source to it. So I guess I can go through it and do a replace on "System" to make it "XYZ::System". Is it possible to use #import on a .lib file? That would be easier but I guess its not that big a deal, one find and replace should do the trick.
|
|
|
|
|
Alright I tried to simply add XYZ:: to all instances of System in the headers of the 3rd party library , but I realized that the problem is with microsoft's yvals.h usage of System.bla.bla when I've included XYZ as a namespace. It's not working.
I am going to have to rename and rebuild the entire 3rd party library, and everything that uses it.. What a major pain in the neck.
|
|
|
|
|
we need a Character set that supports all Language(like Jap.., Chain..etc.) character. we want in our edit box user can past any language character at same time.we tried fcsuicode but it does not meet our requirement.
-- modified at 1:36 Wednesday 23rd November, 2005
|
|
|
|
|
anilksingh wrote: we need a Character set that supports all Language(like Jap.., Chain..etc.) character. we want in our edit box user can past any language character at same time.we tried fcsuicode but it does not meet our requirement.
What about enabling UNICODE support in your Application!
"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 All,
I want to extract the cookies from a HTTP response.
i need to know how the request should b made to get the cookies for a given URL.
Please suggest me regarding the structure of a HTTP request which will accept cookies in response and the sequence of WinInet calls to b made to achieve the task.
Thanks
|
|
|
|
|
Hello
I am working with MFC to create a program to read linux ext2 file system. I am using CreateFile(...). Can anyone please tell me how can i jump to some location within floppy directly that is if i want to read directly block# 3 of floppy how can i do that?
Waiting for kind responce...
Aqueel A. Mirza
we believe in excellence
|
|
|
|
|