|
In the Client part of my Client/Server aplication i get an assertion fail when i call the Read method. The same function works in the Server part. Please help me!!!
|
|
|
|
|
|
Sorry I'm not home now. But i call Read in the dialog class(from an CMySocket object) like nError=m_sSocket.Read(...) and at debugtime it shows debug assertion fail (nError doesn't take any error value)
|
|
|
|
|
Anonymous wrote:
nError=m_sSocket.Read(...)
the value returned from the Read function is the ammount of data read it's not really used as an error code.. it could be (SOCKET_ERROR).. but to catch error codes in read you should do a
m_sSocket.Read(..)
int nError = WSAGetLastError();
Hope this helps.. If not when you get home you could post some of the actual code.. maybe we can see what the issue is.
Rob
|
|
|
|
|
How can i get REAL width of the font ?
I've tried this code but it returns me zero !
LOGFONT logfont;
pFont->GetLogFont(&logfont);
int i = logfont.lfWidth;
// i is always ZERO
What's wrong ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
This means that the default aspect ratio is used, which alas gives you little info. Take a look at GetCharWidth32 , it could be what you need.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
GetTextMetrics might help.
Todd Smith
|
|
|
|
|
Hi,
I want to create an .mdb file using ODBC like :
<br />
CDatabase database;<br />
CString sDriver = "Microsoft Access Driver (*.mdb)"; <br />
CString sSql;<br />
CString strSQL;<br />
<br />
<br />
sSql.Format("DRIVER={%s};DSN='';FIRSTROWHASNAMES=1;READONLY=FALSE;<br />
CREATE_DB=\%s\;DBQ=%s",<br />
sDriver, "F:\\TEMP\\DATABASE.MDB", "DATABASE");<br />
<br />
if( database.OpenEx(sSql,CDatabase::noOdbcDialog) )<br />
{<br />
}<br />
OpenEx function return the following error message :
"File ('inconnu') not found..... Connect string attribut non valid..."
Thank for help
|
|
|
|
|
http://www.appspeed.com/
SkinMagic is a powerful library that changes the visual appearance of windows or dialogs, providing developers with full-featured support for 'application skins', or 'application look and feel'. SkinMagic makes it easy to create programs with visually stunning, fully interactive user interfaces.The interfaces can even be created or edited directly at runtime.
With SkinMagic you could make your program look exactly like it was from another OS, or create your own user WinAmp-like "skinned" interfaces, or just give it a different, distinctive look.
http://www.appspeed.com/
Speed your application develop
|
|
|
|
|
What's is your problem?
Does your app crash?
These forums are here for you when you don't understand something, need advice or if your code doesn't work as you want. So, this kind of question is not a question about a problem, it's advertising!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Please don't advertise products in these forums.
Regards,
Brian Dela
|
|
|
|
|
How to do it for free! Source code included! It's more powerful than a locomotive, and able to leap tall SPAM in a single function call! It's...
GUIGUI!
"Perhaps the truth is less interesting than the facts?" -- Amy Weiss, RIAA's Senior Vice President of Communications. It's the new math! 421 == 156 !
|
|
|
|
|
Son of SerGio?
Todd Smith
|
|
|
|
|
Ssssh! You might awake the beast within him.
--
Only in a world this sh*tty could you even try to say these were innocent people and keep a straight face.
|
|
|
|
|
hi
i have a Device context. is there any way to findout if it change ?? (for example i foundout if a line drawn in it or any changes occures in it)
i want to Redraw a DC if it change. but first i have to findout if it change.
thnx
|
|
|
|
|
It seems you don't really understand what a DC is. You can't draw lines in a DC, you can draw lines on a bitmap using a DC.
The DC is (among other things) more of a descriptor and abstraction layer of the target device and area.
If you however are sure no one else is selecting a new bitmap into the DC, you could possibly create two DIB sections, select one into the DC, select the other into a compatible DC, and blit the original bitmap into the second one. When you then want to check if anything has changed you can just memcmp the two memory areas.
It would probably be quite slow (I'd expect something like >5 milliseconds for just 640x480x24, even on a moderately fast machine), but short of alternatives it would at least work (maybe you'll have to use 32-bpp to not be bitten by DWORD-alignment and unspecified values at end of every line).
|
|
|
|
|
oh Jesus.
thanks for your Very Very Great and Compelete Answer
i read your previus answer about Flicker. it was wonderfulllll
thank for your helppp.
-=Ehsan-de-Burge=-
|
|
|
|
|
If you are using Memory Device contexts (where you select your own bitmap into the DC) then you can use this function to find the bounding box to the last changes since you ask for the changes:
::GetBoundsRect
However, if you are trying to detect changes on a window, then you will have to resort to other methods.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I have a an MFC application in which I insert and OLE object(Word Document)
Now the problem is that I have an "View" Menu for my application with 6 submenu...So when I insert the Ole object..My Application Menu dissappears and "View" Menu of Microsoft word appears.So any idea how to merge two "View" menus...Is urgent
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
how to get a hwnd from an id ?
how to get minuttes from clock?
r00d0034@yahoo.com
|
|
|
|
|
????
To ask the right question you have to know part of the answer. Try to read books, it helps.
|
|
|
|
|
Anonymous wrote:
To ask the right question you have to know part of the answer.
What do you mean with this?
Why does he have to know some part of the answer? Doooh.
Tell me that part!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
It is like , when person loves "C#, ASP.NET and C++", but advises others to use gmtime instead of standard windows APIs.
|
|
|
|
|
And why didn't you mention that to him then, stupid "Anonymous"?
Do you know why forums are made? They are made to help people who asking for help.
You didn't help!
But I did... I can acknowledge that I forgot the Win32 API (GetSystemTime) because I've been to long inside the C Runtime Library now. But you knew about the Win32 API so, Why didn't you mention that? Doooooooooohh!!
BTW: Why are you anonymous? Don't you take responsibility for what you say?
Help or be quiet!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Would you like my home address too? I did not mention anything because with your irresponsible answers you are breading ignorant programmers. This person obviously does not know anything about Windows or programming in general. By giving him this "quick fix" you produced yet another hacker, rest of us have to clean up after. This guy should read something, anything, before even coming here.
|
|
|
|