|
sunil kumar verma wrote: I am not able to resolve this problem.
What problem?
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi All,
How to know the size of dialog.
As i using EVC++.
I have try this function but they not give my dialog size.
GetClientRect<br />
GetWindowRect<br /> They just give my a region size on which my dialog is display on screen & my dialog is bigger then screen height.
CalcWindowRect is also not working.
regards,
Divyang Mithaiwala
|
|
|
|
|
Anyone know how to open/view this unknown RLE compression? I think it was a component from C++ based program. here is the file http://www.xezn.com/unknownrle.rle
thanks a lot for any help
|
|
|
|
|
i m creating a server which listens for incomming connection in thread but it did not work and gives assertion i m using win32 console application supporting MFC,i had included necessary header file and the libs,
The application is win32 application support MFC,that is why i m initialization the socket through wsadata etc,
here is the code.
DWORD WINAPI ServerThread( LPVOID lpParameter)<br />
{<br />
WORD wVersionRequested;<br />
WSADATA wsaData;<br />
wVersionRequested = MAKEWORD(2,0);<br />
if (WSAStartup( wVersionRequested, &wsaData ) == 0 )<br />
{<br />
CSocket objServer;<br />
CSocket objCon;<br />
objServer.Create(8086);
objServer.Listen();
objServer.Accept(objCon);<br />
AfxMessageBox("Accepted");<br />
char data[10];<br />
if(objCon.Receive(&data,strlen(data))>0)<br />
{<br />
AfxMessageBox(data);<br />
objCon.Close();<br />
objServer.Close();<br />
}<br />
return 0;<br />
}
i m creathing this thread inside the main.
<br />
HANDLE thandle;<br />
thandle= CreateThread(NULL,0,(LPTHREAD_START_ROUTINE) ServerThread,NULL,0,NULL);<br />
if (!thandle) <br />
{<br />
bRunService=false;<br />
return false;<br />
}
-- modified at 5:56 Tuesday 12th September, 2006
Tasleem Arif
|
|
|
|
|
tasleem143 wrote: objServer.Create(8086);// here is gives the ASSertion
What line of what file fired the assertion? Short of that and it's just a guess.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
CSocket objServer;
here it gives the assertion with option retry abort cancel.
Tasleem Arif
|
|
|
|
|
What line of what file fired the assertion? You'll see an actual ASSERT() statement.
"Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I have used LoadLibrary to load a dll which works fine in all kinds of Win O.S except 64 bit O.S. Handle returned by LoadLibrary is 0(zero). I have tried to trace the problem using GetLastError and FormatMessage. But GetlastError also returns 0 (Zero).
Why so? Is there any setting I need to do?
Plz reply.
|
|
|
|
|
You need to build that dll on 64-bit OS, to use on same.
|
|
|
|
|
Thnaks for reply.
I have not written DLL. It's a thid party DLL whom I can't contact. Any other possibilities?
|
|
|
|
|
Problem might be, with Dllmain function. Unless, you have code for it. You cant debug.
|
|
|
|
|
I'm searching the method that can install standard 33600 modem using MFC.
This modem is default device in Windows. so I think PNP operation is not necessary and it can be installed by MFC.
What can I do for this program? If you have any sample source, please show me the codes.
Thank you a lot.
|
|
|
|
|
I'm working on a system that consists of a main coordinator app that has many plugin processing modules (as DLLs)
Both the main app, and all the plugins link against a static .lib that contains an assortment of helper classes.
The problem is that these need to be kept in sync (the helper lib only changes rarely, but when it does, both the app and the plugins need to link to the same version)
Is there any straightforward way of obtaining some kind of fingerprint from a .lib so that I can be sure that the main exe and a loaded plugin were linked with exactly the same version of the lib (so I can throw a sensible warning for whichever developer has inadvertantly changed the helper code without rebuilding the correct parts)
|
|
|
|
|
Why don't you get the version info for the plugins, show the user an error if they are of the wrong version. As for build process, I had a similar problem a few weeks back. My solution was to use an auto build incrementer and create a macro to increase the build number on other projects in the workspace.
Also, are you outputting the files to the same directory or coying them over after building? I find it helps to change the output directory that way you can be sure to always have the correct version.
|
|
|
|
|
Dear friends
I wanna have a CSocket object in my class that when I use Accept function this function should has a timeout and after some time if no one connect it it's accept function ended.
Agh
|
|
|
|
|
Is there any windows API to implement the windows function "Scan for hardware change" function. I register 2 windows drivers in the "Device Manager". After one time reboot, it can't appear in the "Device node tree".Also after I use the "Scan for hardware change" in the "Action" menu, those 2 drivers do appear.
I tried to wrote the following code to implement this function, but it seems no effect. Here is my codes.
SendMessageTimeout(HWND_BROADCAST, WM_DEVICECHANGE, DBT_DEVNODES_CHANGED,0, SMTO_ABORTIFHUNG, 3000, &dwMsgResult);
So, I need someone's help! thanks
|
|
|
|
|
I print HTML document from the WebBrowser control(using ExecWB method) without Printer dialog. I supply customised print Template. Everything works fine except it sends output to the Windows Default printer. I want to print to different printer.
Is there the way to send output to specific printer? I can't find.
aleyner
|
|
|
|
|
Hi ALeyner,
i am searching for sample as how to customize the header/footer for the web page print content. Can u plz send me ur code for my understanding as how to implement the print template for customizing the header/footer of the web page while printing. It will be very useful .plz send me ur code.
|
|
|
|
|
since windows draw it for , i counldn't find any way to avoid it when i was creating my own ownerdrawn menu...
any1?
thanks in advanced
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
What about putting a bitmap there?
hope you are aware about drawing triangles using PolyLine method or MoveTo, LineTo combination in GDI. All you need to specify the cordinates... You can adopt that method.
Another tweak is that
using lines you can draw a pooup triangle.
Here I have drawn a triangle using three lines. Assume that each "|" represents a pixel and each column with "|" represents a line.
You can use this method.
|
||
|||
||
|
Sorry no time to write code for the same
-Sarath.
The more you can dream the more you can do - Michael Korda"
|
|
|
|
|
i can draw what ever i want, the problem is that after the 'DrawItem' is finished, windows calls its own methods to draw the arrow by itself, so it overwrite my drawings...
anyway to bypass this problem?
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Just subclass the menu and handle your own painting.
|
|
|
|
|
subclass as in inherite a class from CMenu and implement DrawItem?
if this is what you suggest, i've already done that, and still the problem remains, because after draw item, windows draw the arrows itself....
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
No, subclass and implement a handler for WM_PAINT.
Steve S
Developer for hire
|
|
|
|
|
I used the following trick:
At the end of your DrawItem(), just before returning, set an empty clipping region. This will effectively prevent Windows from drawing over your arrow.
At the beginning, reset the clipping region to ensure you can draw back.
Code:
void CMyMenu::DrawItem(LPDRAWITEMSTRUCT lpDIS)
{
pDC->SelectClipRgn(NULL);
pDC->IntersectClipRect(0,0,0,0);
}
|
|
|
|