Search found 77 matches

by vasek
Mon Dec 19, 2005 1:11 pm
Forum: C++ Development
Topic: Size of statusbar is too big...
Replies: 19
Views: 2798

Just curious about the problem and downloaded priyank's sample zip. It displays status bar in the top (with proper size), but when i resize the window, status bar starts to 'flicker' between top and bottom and when 'docked' at the bottom, it has wrong size! When I finish resizing, it gets back to th...
by vasek
Mon Dec 19, 2005 12:25 pm
Forum: C++ Development
Topic: WaitOnConnect() fails when it shouldn't
Replies: 5
Views: 677

I had the very same problem, but after reading this and some coding of course :) everything works fine.

Good luck!
by vasek
Mon Oct 10, 2005 8:51 am
Forum: C++ Development
Topic: Time Conversion ...
Replies: 4
Views: 1040

I didn't get your point - what exactely do you need?

If you need some information about localtime(), look at MSDN. I guess, functions that start with _ are MS specific.[/url]
by vasek
Fri Oct 07, 2005 4:40 pm
Forum: C++ Development
Topic: Time Conversion ...
Replies: 4
Views: 1040

MSDN says:
The long value timer represents the seconds elapsed since midnight (00:00:00), January 1, 1970, UTC
So, if your local time is not in UTC, conversion is performed, e.g. CET is UTC+1 and CEST is UTC+2.
by vasek
Fri Oct 07, 2005 4:32 pm
Forum: C++ Development
Topic: _variant_t to wxDateTime ?
Replies: 7
Views: 1775

Code: Select all

#define MAKELONG(a, b)      ((LONG)(((WORD)((a) & 0xffff)) | ((DWORD)((WORD)((b) & 0xffff))) << 16))

unsigned short val16[2] = { 1, 1 };
unsigned int val32 = MAKELONG(val16[0], val16[1]);
// val32 == 65537
I don't know if there's standard wx way, that cares about byteorder...
by vasek
Fri Oct 07, 2005 3:33 pm
Forum: C++ Development
Topic: wxIPControl
Replies: 9
Views: 2313

Try regular expression validator posted in Code dump section in this forum. I use it for IPv4 addresses :)
by vasek
Tue Oct 04, 2005 10:17 am
Forum: C++ Development
Topic: wxDisplay
Replies: 12
Views: 1992

Unfortunately, DirectX functions in display.cpp aren't compiled using #ifdefs, so ddraw.h is required.

Btw, multimon.h could be found at ([email protected])

Code: Select all

// if you don't have multimon.h you can download the file from:
//
//  http://www.microsoft.com/msj/0697/monitor/monitortextfigs.htm#fig4
//
by vasek
Tue Oct 04, 2005 9:33 am
Forum: C++ Development
Topic: wxDisplay
Replies: 12
Views: 1992

If you use DirectX, you need to download its SDK (should be present in newer versions of Platform SDK). If not, your platform SDK version is old and you should download newer one from MS.
by vasek
Mon Oct 03, 2005 12:34 pm
Forum: C++ Development
Topic: no data in sockets problem
Replies: 5
Views: 1305

wxSocketInputStream and wxBufferedInputStream might save you some time :)
by vasek
Mon Oct 03, 2005 8:45 am
Forum: C++ Development
Topic: wxSocketBase::Read
Replies: 5
Views: 1072

I suggest capturing packets using utility called Ethereal, it's very useful for these situations :)
by vasek
Mon Oct 03, 2005 8:43 am
Forum: C++ Development
Topic: no data in sockets problem
Replies: 5
Views: 1305

I guess you will keep receiving only 'A' since it's buffered in incoming buffer and nothing is to be appended until you clear it. When you want to get all of data, you would have to implement your own reading logic (I expect you want to code something that will pass you data line-by-line): 1. wait f...
by vasek
Fri Sep 30, 2005 2:00 pm
Forum: C++ Development
Topic: Need more tutorials...
Replies: 13
Views: 1703

Did you initialize image handlers using ::wxInitAllImageHandlers() ?
by vasek
Fri Sep 23, 2005 9:03 pm
Forum: C++ Development
Topic: wxFILTER_EXCLUDE_LIST
Replies: 7
Views: 1806

maybe regular expression validator could help -- i've posted one in code dump :)
by vasek
Fri Sep 23, 2005 7:30 pm
Forum: The Code Dump
Topic: How I use wxArray: a shy attempt to explain...
Replies: 3
Views: 3061

LOGTEXT( _T( test->RootName + "\\" + test->SubsystemName + "\\" + test->ComponentDir + "\\" + test->ComponentName + "\n" ) ); wouldn't compile under Unicode, where _T("const string") expands as L"const string" and therefore _T(test->RootName + ... ) makes no sense.
by vasek
Fri Sep 23, 2005 6:17 pm
Forum: C++ Development
Topic: Error switching from Debug to Release w/ ODBC enabled setup
Replies: 1
Views: 778

There's a tool called Dependency Walker (shipped with VS) that can show you all dll-exported symbols. What's the difference between requested [email protected] symbol and exported one? Return value? Parameters?