|
Hello,
Thanks for your reply
I made a release mode, but it does work as debug mode, that is one thing.
Another thing, do u think that Installing vcredist_x86.exe on the target machine, to run my application?
Thanks
It is never late to learn
|
|
|
|
|
Gofur Halmurat wrote: Another thing, do u think that Installing vcredist_x86.exe on the target machine, to run my application?
sorry, I didn't understand the question. If you want to run your application on the target machine, then you'll need to execute vcredist_x86 on it. This will install the C-runtime libraries and the MFC libraries.
|
|
|
|
|
MFC42D.DLL
MFCN42D.DLL
MFCO42D.DLL
MSVCRTD.DLL
paste these dll on system32. It will solve your problem.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
He's talking about VC2005, not VC6.
|
|
|
|
|
u r Right, that was my mistake.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Shilpi Boosar wrote: u r Right
May I please ask you to STOP using SMS language on the boards? Don't you have a keyboard with all the keys in it?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
u r right but plz help coz urgent...
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
|
|
|
|
|
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
|
Using SMS lingo on a good public board like this is considered to be unprofessional, and I suggested you not to do it. I'm done.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I use Visual Studio 2005,
those dlls should be like these:
MFC80D.DLL
MFCN80D.DLL
MFCO80D.DLL
MSVCRTD.DLL
But, still not clear, Why should use always copy the dlls into system, my program is
like 0.4 mb, the dlls are about 10 mb
For the simple project, why should i hold the dlls
It is never late to learn
|
|
|
|
|
You could build the project using MFC in a static library instead of moving debug dlls. But this might also generate huge executable.
|
|
|
|
|
Shilpi Boosar wrote: MFC42D.DLL
mfc42d.dll is used by vc6. The mfc dlls with VS 2005 starts with mfc80
|
|
|
|
|
i.e the ugly way.
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
|
|
|
|
|
The problem with this is that it is illegal to distribute the dlls you listed. Those are DEBUG builds, and per the Microsoft License Agreement, you may not re-distribute them.
You must build a release build of your program, and then you are permitted to redistribute the release build of the dlls (using the vcredist as mentioned by others).
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Thanks for the satisfactory reply
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
|
Google gave this [^].
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 all,
I am using FindResource api for getting Handle of a resource.
but i am getting null in the handle and GetLastError is returning 1814...
Can anybody tell me what might be the error....
thanks in advance
|
|
|
|
|
neha.agarwal27 wrote: Can anybody tell me what might be the error....
"The specified resource name cannot be found in the image file. "
With Visual studio there is a tool called error look. You can enter the error code and it will show you the error string.
To take error lookup from visual studio take "tools menu->Error Lookup"
|
|
|
|
|
Winerror.h:
#define ERROR_RESOURCE_NAME_NOT_FOUND 1814L
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 can i remove this error??
|
|
|
|
|
Simply make sure the resource is indeed in the image file.
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
|
|
|
|
|
I am trying to receive udp packets which contains video data. I am receiving WSAEWOULDBLOCK error always.Can any one help me
The code is
WSADATA wsaData;
int error = WSAStartup(0x202,&wsaData);
if(error)
return FALSE;
if(wsaData.wVersion != 0x202)
{
WSACleanup();
return FALSE;
}
m_UdpSock=(SOCKET)WSASocket(AF_INET,SOCK_DGRAM,0,NULL,NULL,0);
if(m_UdpSock==INVALID_SOCKET)
return FALSE;
sockaddr_in sockAddrServer;
sockAddrServer.sin_family=AF_INET;
sockAddrServer.sin_port=htons(port_data);
sockAddrServer.sin_addr.s_addr=INADDR_ANY;
// Bind socket to listener address
if(bind(m_UdpSock,(SOCKADDR*)&sockAddrServer,sizeof(sockaddr_in))==SOCKET_ERROR)
{
int y=WSAGetLastError();
printf("Unable to bind socket\n");
return FALSE;
}
// Create WinSock Event object
WSAEVENT eventWinsock=(WSAEVENT)WSACreateEvent();
if(eventWinsock==WSA_INVALID_EVENT)
{
printf("Unable to create winsock event\n");
return FALSE;
}
// Signal WinSock Event on receive packet
if(WSAEventSelect(m_UdpSock,eventWinsock,FD_READ)!=NOERROR)
{
printf("Unable to connect event to socket\n");
return FALSE;
}
while(m_abort)
{
Recvbuf=new char[BUFFER_SIZE];
if(WaitForSingleObject(eventWinsock,INFINITE)== WAIT_OBJECT_0)
{
sockaddr_in sockAddrRecv;
int nSockAddrSize=sizeof(sockaddr_in);
// Packet received
EnterCriticalSection(&m_cs);
int nErr=recvfrom(m_UdpSock,Recvbuf,BUFFER_SIZE,0,(sockaddr*)&sockAddrRecv,&nSockAddrSize);
LeaveCriticalSection(&m_cs);
if(nErr==SOCKET_ERROR)
{
nErr=WSAGetLastError();
if(nErr==WSAEWOULDBLOCK)
{
WSANETWORKEVENTS wsevents;
WSAEnumNetworkEventsm_UdpSock,eventWinsock,&wsevents);
DWORD dwEventId = WaitForSingleObject(eventWinsock,3000);
if(dwEventId == WAIT_TIMEOUT)
continue;
continue;
}
}
else
{
TRACE("Receive Data Size %d\n",nErr);
BYTE init=Recvbuf[0];
TRACE("Packet Size for Init %d =%d and index=%d \n",init, nErr,index);
}
|
|
|
|
|
WSACreateEvent() creates a manual reset event, but I don't see anywhere
that you reset the event after waiting on it. Without resetting it,
you end up in a busy loop in between received datagrams.
*edit* Your WSAEnumNetworkEvents() call resets the event, but only every <br />
other time through the loop. You'll probably want to fix the logic there :)<br />
Either use an auto-rest event or always call WSAEnumNetworkEvents() after the event<br />
is signaled, not just if there's a WSAEWOULDBLOCK error.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
modified on Wednesday, April 23, 2008 3:36 AM
|
|
|
|