|
Yes, its existing in windows/system32 folder.
Regds
jain_MS
|
|
|
|
|
You may be right about library versions, then - you may have linked against a different version from those present on the target machine.
You said the target machine had VS installed on it. Does it have the same service packs and updates installed as your dev box?
[edit]
Check out Covean's response below - he sounds as if he has a better handle on this.
[/edit]
modified on Tuesday, November 10, 2009 9:50 AM
|
|
|
|
|
Yes , my both Dev & remote machine have same service packs.
Actually from dev box, while compiling my executables from Dev box, i have made some changes in my project properties, Manifest Tool->Input & Output -> Embed Manifest =NO(i set it as NO, before it was YES).
Now that Error is not occuring , but now i am getting new error
<b>Could not start the App.exe service on Local computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.</b>
Please let me know ur comments on this.
Your help much appreciated
Regds
Jain_MS
|
|
|
|
|
This problem often occurs if you try to use an 32 bit dll in an 64 bit app or the other way around.
So make sure your app and the dll runs both in 32 or 64 bit environment.
The second reason for this can be, that the infocardapi.dll itself references a dll that is not installed on the machine.
At last: Do not copy dlls like msvcm80.dll instead install the microsoft redistributable package for
your type of machine like this.
Greetings
Covean
|
|
|
|
|
Thanks for ur reply,
My both dev & remote machine as 32 bit version .
Actually from dev box, while compiling my executables from Dev box, i have made some changes in my project properties, Manifest Tool->Input & Output -> Embed Manifest =NO(i set it as NO, before it was YES).
Now that Error is not occuring , but now i am getting new error
Could not start the App.exe service on Local computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.
Please let me know ur comments on this.
Your help much appreciated
Regds
Jain_MS
|
|
|
|
|
Have you developed a service application?
This sounds like an error in your start or control function of your service, that doesn't
respond in 30 seconds (if you didn't request more time).
Greetings
Covean
|
|
|
|
|
is there any way to request the service to wait more than 30 seconds..
Otherthan doing changes in my program?...
Your help much appreciated.
Regds
Jain_MS
|
|
|
|
|
No I do not know a way.
I think you have to use SetServiceStatus with SERVICE_START_PENDING and dwCheckPoint, dwWaitHint
having valid values. And do this every time you need more time for startup by increasing dwCheckPoint.
Greetings
Covean
|
|
|
|
|
just quick read your problem, maybe you having express edition, you need to get release edition of VC++ or get latest .NET framework update and MSVC++ 2008 redistributable update, I experienced same, did that.
|
|
|
|
|
Hi,
we have cutomized TreeView control. If we embed this tree view control on a window , then applicaiton is crashing in Vista OS,Win2008 32bit/64bit. When the same tree view control is embeded on a window on Win2003 OS then application is not crashing. This looks to be OS specific issue.
I had attached Debug Diagnostics with the applicaiton. The below is call stack generated by debug diagnostics.
ntdll!RtlDeactivateActivationContext+14e 002d07c8 18850022 0012c2c4
kernel32!DeactivateActCtx+31 00000000 18850022 0214cce8
dmocx!CTVCtrl::OnDraw+28 0012c308 0012c2f8 0012c2e8
mfc42u!COleControl::OnPaint+11f 00000000 00b5ad05 00000000
mfc42u!CWnd::OnWndMsg+43c 0000000f 00000000 6ce3cdf0
mfc42u!CWnd::WindowProc+2e 0000000f 00000000 00000000
mfc42u!COleControl::WindowProc+12f 0000000f 00000000 00000000
mfc42u!AfxCallWndProc+b5 0214cce8 00000000 0000000f
mfc42u!AfxWndProc+3e 001102d8 0000000f 00000000
dmocx!AfxWndProcDllStatic+2e 001102d8 0000000f 00000000
user32!InternalCallWinProc+23 73c33094 001102d8 0000000f
user32!UserCallWinProcCheckWow+14b 0035c8bc 73c33094 001102d8
user32!DispatchClientMessage+da 01346e48 0000000f 00000000
user32!__fnDWORD+24 0012c648 00000018 0012c6c4
ntdll!KiUserCallbackDispatcher+2e 76c14566 00160542 00000060
user32!NtUserCallHwndLock+c 00160542 00000060 0012c690
user32!UpdateWindow+32 00160542 0214aaec 00000000
ocxgot!ocxMethod+486e 002602ac 0012c6b0 00000000
ocxgot!ocxMethod+7ee9 0000005a 0000003c 000000d2
ocxgot!ocxMethod+7514 0214aad8 190106a0 0000005a
ocxgot!WWDLLDrawRuntime+7c 0214aad8 190106a0 0000005a
view!PasswordEdit+248a 190106a0 0000005a 0000003c
Any help would be appreciated.
Thanks in advance.
|
|
|
|
|
Debug Diagnostics also shows the below information
the assembly instruction at ntdll!RtlDeactivateActivationContext+14e in C:\Windows\System32\ntdll.dll from Microsoft Corporation has caused an unknown exception (0xc015000f) on thread 0
|
|
|
|
|
Hi,
This error is related to SxS and Isolation Awareness.
The callstack you posted appears to contain an ActiveX DLL. Do both depend on the MFC Libraries? If so... do they depend on the same version of MFC or different versions?
Best Wishes,
-David Delaune
|
|
|
|
|
Thanks for the information.
In one of your previous replies to the similar problem you have suggested to include afxAmbientActCtx = FALSE; in the Initinstance function.
I have been trying to use this flag in Initinstance of our application. But I am getting this error
"error C2065: 'afxAmbientActCtx' : undeclared identifier"
Can you suggest what has to be added .
Thanks..
|
|
|
|
|
Hi,
I believe the afxAmbientActCtx is only available in CWinApp/CWinAppEx applications. It is actually equal to the the AfxGetModuleState()->m_bSetAmbientActCtx. This is probably not what you need.
V K 2 wrote: Can you suggest what has to be added .
Well you did not answer my questions. I asked them for a reason. So now I have to make a guess as to how to fix your ActiveX DLL.
Anyway if your ActiveX DLL exposes MFC functions then I would recommend protecting them with a call to the AFX_MANAGE_STATE[^] macro at the top of your exported function. The error you are recieving is related to Activation Contexts[^] so you will also need to double check that your manifest file is correct.
Best Wishes,
-David Delaune
|
|
|
|
|
hi every body.......
in my application i want to convert any format to pdf
i.e word,excel,xml,html,ppt and so on....
in my application using C(or)C++ code....
thanks in advance......
if find any mistakes in my typing sorry......
thanks in advance....
|
|
|
|
|
soo preety wrote: in my application i want to convert any format to pdf
You will need to understand how to read the various file formats using the available interface libraries as appropriate. Then you need to render the output in PDF format which will require one of the PDF libraries or printer drivers.
|
|
|
|
|
This looks lke an exact duplicate of a question from "eswar pothula", below. It would appear that you are abusing the forum - please desist.
|
|
|
|
|
hi everybody,
iam using <b>DeviceIoControl()</b> to get the physical drive number. but
the problem is that the DeviceIoControl is giving error 87.means that parameter is incoorect.
please help me anybody knows this solution.
int GetDriveNumber(CString strDrive)
{
TCHAR lpWindowsDir[_MAX_PATH+1];
VOLUME_DISK_EXTENTS pdg;
CString strDevice;
HANDLE hDevice =NULL;
DWORD dw;
DWORD dwBytesReturned;
GetWindowsDirectory(lpWindowsDir,_MAX_PATH+1);
strDevice.Format(_T("\\\\.\\%s:"),strDrive);
hDevice = CreateFile(strDevice,
GENERIC_READ,
FILE_SHARE_READ|FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
if(hDevice != INVALID_HANDLE_VALUE)
{
BOOL bIsSucces = DeviceIoControl(hDevice,IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS,NULL,0,
&pdg,sizeof(pdg),&dwBytesReturned,NULL);
dw= GetLastError();
CloseHandle(hDevice);
return pdg.Extents->DiskNumber;
}
return FALSE;
}
Regards,
Srinivas
|
|
|
|
|
Your code worked fine for me. How are you calling GetDriveNumber() ? Are you calling GetLastError() regardless of what DeviceIoControl() returns.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi Srinivas,
What type of storage device are you using this control code on? You need to call GetLastError and check to see if the buffer you passed was too small. This control code can return an array greater than your buffer size.
Best Wishes,
-David Delaune
|
|
|
|
|
i got it, where is the problem.
i declared as #pragma pack(push, 1) in stdafx.h file.
it is working perfect,if i removed #pragma pack(push, 1) in a stdafx.h file.
but i need #pragma pack(push, 1) some where in my code,
how can i disable this pragma pack1 through code.
tell me if anybody knows this soultion
thanks
Regards,
Srinivas
|
|
|
|
|
Hi Srinivas,
You should only add this #pragma pack[^] around the structs,classes that require packing. After the struct/class declaration you add:
#pragma pack(pop)
This will allow the other data types to have previous alignment.
Best Wishes,
-David Delaune
|
|
|
|
|
Create a C/C++ console application which connects to a MySQL database and shows all tables and their Primary Keys.please provide the answer.......
kir_MFC
|
|
|
|
|
We'll assume that the language barrier is responsible for making you look as if you're a lazy young idiot who's incapable of doing his own work. I'm sure that's not really the case.

|
|
|
|
|