Click here to Skip to main content
15,904,823 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with CFileDialog (access violation). Pin
Member 116346825-Apr-04 0:54
Member 116346825-Apr-04 0:54 
GeneralRe: Problem with CFileDialog (access violation). Pin
Antony M Kancidrowski5-Apr-04 6:49
Antony M Kancidrowski5-Apr-04 6:49 
GeneralAbout Resource DLL's Pin
Rassul Yunussov5-Apr-04 0:50
Rassul Yunussov5-Apr-04 0:50 
GeneralMoving to VC++ Pin
Sachin Shinde5-Apr-04 0:34
Sachin Shinde5-Apr-04 0:34 
GeneralRe: Moving to VC++ Pin
avenger_sb255-Apr-04 2:24
avenger_sb255-Apr-04 2:24 
GeneralRe: Moving to VC++ Pin
Steve S5-Apr-04 2:43
Steve S5-Apr-04 2:43 
GeneralRe: Moving to VC++ Pin
Sachin Shinde5-Apr-04 21:32
Sachin Shinde5-Apr-04 21:32 
GeneralUnresolved Problem... Pin
JeabJB5-Apr-04 0:10
JeabJB5-Apr-04 0:10 
Here is my unresolved problem: I spoke about it last Friday but I have still no solutions for resolving it:

Description of the problem:

I use a function "PESDEMUX_ProcessFile" which is defined in the file "XtlPes.dll". This function allows me to convert file from one type to another.
I work on a device which is controled by my computer with the SERIAL or the USB port.

When I am on SERIAL Mode for controling the device, I have to transfer the file by USB port from the device to my computer and the function "PESDEMUX_ProcessFile" does the conversion. (I have to open and close a USB communication port for that). Here is there no problems.

Now, when I am on USB Mode for controling the device, I have to transfer the file by USB port too from the device to my computer and the function "PESDEMUX_ProcessFile" may does the conversion too. But I have a Visual C++ error: "Unhandled exception in Appli.exe (XTLPES.DLL): 0xC0000005: Access Violation." With the "Call Stack" option in Visual C++, I see that there is a problem at that line: "00E34F3D mov eax,dword ptr [esi+304h]".


Here is the code I used for caling the function "PESDEMUX_ProcessFile":

typedef LONG (__cdecl *PESDEMUX_ProcessFile)(CHAR*,CHAR*,INT);

PESDEMUX_ProcessFile pProcessFile;
CHAR chInFileName[255];
strcpy(chInFileName, m_csPCFileName); //Conversion CString to CHAR*
CHAR chOutFileName[255];
m_csPCFileName = m_csPCFileName + ".mpg";
strcpy(chOutFileName, m_csPCFileName); //Conversion CString to CHAR*
INT Type = 1;

if (theApp.g_hDllXtlPes != NULL)
{
pProcessFile = (PESDEMUX_ProcessFile)GetProcAddress(theApp.g_hDllXtlPes,"PESDEMUX_ProcessFile");
if (!pProcessFile)
{
FreeLibrary(theApp.g_hDllXtlPes);
return FALSE;
}
else
{
BOOL BResult = TRUE;
BResult = pProcessFile(chInFileName,chOutFileName,Type);
if (BResult == FALSE)
{
TRACE("Conversion Process OK\n");
}
else
TRACE("Conversion Process non OK\n");
}
}


With HINSTANCE g_hDllXtlPes = LoadLibrary("XtlPes.dll"); defined in another .cpp file.

Do you have any ideas on that curious problem ?
Thank's for advance,
GeneralRe: Unresolved Problem... Pin
Alexander M.,5-Apr-04 1:30
Alexander M.,5-Apr-04 1:30 
GeneralRe: Unresolved Problem... Pin
Anonymous5-Apr-04 2:02
Anonymous5-Apr-04 2:02 
GeneralRe: Unresolved Problem... Pin
JeabJB5-Apr-04 2:36
JeabJB5-Apr-04 2:36 
GeneralRe: Unresolved Problem... Pin
HAHAHA_NEXT5-Apr-04 3:51
HAHAHA_NEXT5-Apr-04 3:51 
GeneralRetrieving hardware information thr C++ Pin
xiAoYJia5-Apr-04 0:06
xiAoYJia5-Apr-04 0:06 
GeneralRe: Retrieving hardware information thr C++ Pin
Alexander M.,5-Apr-04 1:25
Alexander M.,5-Apr-04 1:25 
GeneralRe: Retrieving hardware information thr C++ Pin
avenger_sb255-Apr-04 4:05
avenger_sb255-Apr-04 4:05 
GeneralInternet Explorer Address Bar Pin
Anonymous4-Apr-04 22:36
Anonymous4-Apr-04 22:36 
GeneralRe: Internet Explorer Address Bar Pin
Milton Karimbekallil5-Apr-04 0:01
Milton Karimbekallil5-Apr-04 0:01 
QuestionHow to link a .lib to VC++.NET Pin
roadragedave4-Apr-04 22:15
roadragedave4-Apr-04 22:15 
AnswerRe: How to link a .lib to VC++.NET Pin
Prakash Nadar4-Apr-04 22:52
Prakash Nadar4-Apr-04 22:52 
GeneralRe: How to link a .lib to VC++.NET Pin
roadragedave4-Apr-04 23:10
roadragedave4-Apr-04 23:10 
QuestionHow do I disable a net adapter? Pin
ls.wang4-Apr-04 21:30
ls.wang4-Apr-04 21:30 
AnswerRe: How do I disable a net adapter? Pin
Prakash Nadar4-Apr-04 23:51
Prakash Nadar4-Apr-04 23:51 
GeneralRe: How do I disable a net adapter? Pin
Alexander M.,5-Apr-04 1:28
Alexander M.,5-Apr-04 1:28 
Questionhow to built app avoid attaching .dll files ? Pin
Huu Tu4-Apr-04 20:55
Huu Tu4-Apr-04 20:55 
AnswerRe: how to built app avoid attaching .dll files ? Pin
Monty24-Apr-04 21:26
Monty24-Apr-04 21:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.