|
I use WinXPpro and this problem is true! Why so?
|
|
|
|
|
I tested it on 2000Professional and WinXPpro. Do you need the test project (11k)?
rechi
|
|
|
|
|
can you send your project for me, thanks!
skidrow406@yahoo.co.uk
I found it, reason, which cause I can't add string into combo. That's combo, which design on design-time on dialog, have a height of drop down list = 0 >> so that, I need to set HEIGHT OF DROP DOWN LIST > 0 by one of following function:
BOOL MoveWindow(
HWND hWnd, // handle of window
int X, // horizontal position
int Y, // vertical position
int nWidth, // width
int nHeight,// height
BOOL bRepaint// repaint flag
);
BOOL SetWindowPos(
HWND hWnd, // handle of window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning flags
);
|
|
|
|
|
I am confused. I do not have WinXPpro. How can a drop down list have a height of 0? The height should have been set in the dialog editor (1 line by default), although you normaly want to resize it to more. I have never needed to change the size but in the dialog editor.
Trust in the code Luke. Yea right!
|
|
|
|
|
Hi !!
With VC++ 6, I'm displaying in a combobox, the list of available disks of the local computer.
I'm wondering how I could be notified when a removable disk is connected (for instance a USB key) so that I can refresh the combobox, without having to do polling.
Thank you for your help !
Jerome
|
|
|
|
|
problem: when i press button "build" - not "build all", VC 6.0 compiles all of files in the project now.
normally, it should not compile any file because there is no file has been modified.
i met the problem before, i fixed it with run anti-virus, but the method doesn't work now.
so, in the moment, even i just modify one line in one cpp file, vc 6.0 compiles all of files, i have to wait for over 10 minutes for this huge project. normally vc just compiles the file modified then links it to others - totally few seconds.
it consumes all of my time for two days.
do u know how to solve the problem?
thx
includeh10
|
|
|
|
|
Problems with dates of files? Try pressing build after a build --normally no extra build is done.
Watch your system time, it might be set in the past or something, check also the sates of your files to rule out any odd date. These things happens sometimes.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
system time keeps going, no compile and run time error.
i guess one of h file is corrupted, but i can't find which one.
i have no idea.
includeh10
|
|
|
|
|
In explorer, do a search for *h, *.cpp, *.rc etc from the root of the project. Show details.
Sort by date. Are any of the files "newer" than "now"? If so, open them edit them trivially
(i.e. press <space> and <delete>) and save them. Clean the project and compile. This will do
a full compile, but now everything should be in sync. (Not the pop group...)
Iain.
ps. I've had this problem copying between my laptop and main pc when I've come back from the
far east and forgotten to change my clock back...
|
|
|
|
|
hi, mate, it works!
many thanks and
far east is a magic place, isn't it?
includeh10
|
|
|
|
|
There are have many library such as GDI, GDI+, OpenGL, DirectX.
I want to build small image viewer that able to zoom, score with dithering on 16-bit screen display mode.
Could any one tell me, if I have an image in memory what is the fastest way to show it on screen?(both in window's frame and full-screen mode without resolution and color-depth change) What's library you use?
|
|
|
|
|
I normally use GDI/MFC for my "serious" programming as I'm not writing games. Ease of writing /
debugging is more important here than performance. I've not touched GDI+ but it does appear a
little easier. But with more overhead...
For raw speed of display I'd go with DirectX. But you pay the penalty in programming headache.
OpenGL is good for 3d stuff, but I've found it not so good for 2d work.
In the final analysis, "It depends". If performance wasn't critical to you, you wouldn't be
asking, so I'd have to say DirectX.
Iain.
|
|
|
|
|
How i can create a setup application using Windows Installer SDK. Let me know from where i can get Source Code. or anything that can help.
|
|
|
|
|
I would like some information on this as well. I remember when the MSI thingy came out there was a tool (I think from Microsoft) that let you create a installer from a Wizard. But the only thing I can find now is the SDK, wich as of right now I don't have the time to dive into and learn.
-----
IMHO: C# a poor attempt at bringing C++ to the VB masses
-----
|
|
|
|
|
I need to generate an XML file from a bytearray. Can somone help me with that?
thanks
|
|
|
|
|
My prefered XML library is XML4C[^]. Much more efficient than MSXML and open source to boot.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
My prefered XML library is XML4C[^]. Much more efficient than MSXML and open source to boot.
Ravi, have you tried our own pugxml http://www.codeproject.com/soap/pugxml.asp[^]?
I'm using this more and more and just love it. Mind you it is probably a bit light on, compared to XML4C, but do you realy need all that extra stuff. The answer I'm sure is, it depends.;)
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
I was impressed by Kristen's article. We've been using XML4C for a couple of years, hence the continuation. The latest version (5.2) contains some nice features and uses the latest Xerces (2.2) parser.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi all
ONX_Model is a class.
class CModel : public ONX_Model
{
}
what does this mean?
Thanks
|
|
|
|
|
it means that CModel inherit class ONX_Model.
It is a inheritance.
|
|
|
|
|
ONX_Model is an existing class.
And u r inheriting a class CModel with a public visibility mode
|
|
|
|
|
Hi guys,
I am trying to call Invalidate(FALSE) function from a thread to update my screen, I am getting error "illegal call of non-static member function". I want to update the screen after I process some data in my thread. How to do that?? can anybody suggest something?
Regards
Satya
|
|
|
|
|
your thread function is a static function i.e. it does not operate on a specific object and does not have a 'this' pointer.
Invalidate() is a non-static method i.e. it requires an object to operate on. you need to pass an object pointer through to the thread (typically as the thread parameter) and then use that to call Invalidate() i.e.
<br />
CWnd* pThis = (CWnd*) threadParam ; <br />
pThis->Invalidate( FALSE ) ; <br />
Software is everything. It also sucks. Charles Fishman [^]
Awasu 1.0.2 (beta)[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
It isn't a good idea to try and use CWnd objects in worker threads, because they don't appear in the handle map for the worker thread. This leads to all sorts of problems. Better to just use the HWND (Window Handle).
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
If you have HWND via GetSafeHwnd or m_hWnd been passed to your function,
just call api's directly ::InvalidateRect(hwnd,NULL,FALSE);
|
|
|
|