|
I got it fixed myself. I removed the lines from the old constructor. I guess even I commented them out, the class wizard still treats them as regular code for example //AFX_DATA_INIT was appearing in two places, one at the old(replaced) constructor, and one at the replacing constructor.
Elizabeth
|
|
|
|
|
Hi world;
Anybody know how to display a YUV (or YCrCb) 16 bits image format?
Because I grab image from a PAL-M camera and the image format is 16 bits YCrCb...
I use the GDI! Currently I can dispay B&W (8 bits) and RGB format (32 bits) from others cameras without problems...
Thanks for your help...
Hello World!!!
from Raphaël
|
|
|
|
|
Raphaël Kindt wrote:
Anybody know how to display a YUV (or YCrCb) 16 bits image format?
See if this site helps any:
http://www.wotsit.org/search.asp?page=10&s=graphics
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi,
I am developing an attributed ATL COM component in VC 7.0. Everything works fine until I add a web reference. When I add a web reference to some webservice (created in Java), the BUILD process of ATL COM component generates following error while performing registration.
Performing registration
Project : error PRJ0019: A tool returned an error code from "Performing registration"
The point is that if I make the same ATL COM component without using Attributes, the BUILD process returns no error even after adding the web-reference to the web service.
Could anyone be able to help me out in resolving this issue ?
Regards,
Arun
|
|
|
|
|
When using the multiple select option with CFileDialog to get mutlple files, there is a size limit of 32K. If there are more files selected, some are lost no matter how big the buffer size you provide. THis is a problem when selecting a large number of files since no warning is given about some files are not included. The limit is actually set by the GetOpenFileName call.
Has anyone found a solution to get around of this problem?
Thanks
|
|
|
|
|
Use Windows 9x/Me and there is no restriction. Also using Unicode on Windows 2000/XP and there is no restriction. Other than that, the 32KB limit is it.
I'm curious if that is really a problem for you. Even if every filename was maxed out at 256 characters, that would yield room for 128 of them.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
It's not a common problem but an annoying problem for us.
We deal with large 3D medical images, each set can have more than
800 files where each file has filename easily longer than 128 chars.
While it's true some platforms don't have the limit, we don't
have the option to ask the user to choose certain windows to
run. Of course, you run into other problems on Windows 9X, where
the maximum size of memory you can allocate is 256MB. Not good
for processing large size CT images.
Thanks
DavidCrow wrote:
Use Windows 9x/Me and there is no restriction. Also using Unicode on Windows 2000/XP and there is no restriction. Other than that, the 32KB limit is it.
I'm curious if that is really a problem for you. Even if every filename was maxed out at 256 characters, that would yield room for 128 of them.
|
|
|
|
|
Check out CodeProject code section.
http://www.codeproject.com/dialog/pja_multiselect.asp
Kuphryn
|
|
|
|
|
Thanks for the link, it solved the problem beautifully!
kuphryn wrote:
Check out CodeProject code section.
http://www.codeproject.com/dialog/pja_multiselect.asp
|
|
|
|
|
Please help me how I get sound from microphone and record it to file and analysis it(amplitude,frequenceand volume)inVirtual c++ Thank you
nattapolaoun
|
|
|
|
|
I'm fed up with this newbie sh*t... oh please internet, show me how to code!
IT'S NOT VIRTUAL C++, IT'S VISUAL C++!!!
go away if you don't know anything about programming! good bye!
Don't try it, just do it!
|
|
|
|
|
<rant>
Unfortunetaly for you, you're my luck winner in the "pick on someone who has asked a homework question in the forum" contest.
OK.. first off: it's VISUAL c++. Secondly, why the hell is the thread called "Direct x"? Thirdly, have you done ANY kind of searching on your own on this topic? Maybe used Google? Perhaps, before you come here hoping that someone will write your homework for you, you actually go out and try to something on your own? Fouthly, i think it's same to assume that you have not written any code at all. Fifthly, why not just ask us to mow your lawn and take out your garbage for you while you're at it?
Now, after you have done some searching, some coding, and some debugging of your own, and you STILL have trouble getting something to work, maybe *then* come here and say "i'm not sure what i need to be doing here, can someone point me in the right direction?". (don't make it a bug-hunt either: people hate that).
</rant>
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know...
[Nitron]
|
|
|
|
|
6th: people hate it, when some1 is just registering on CP, to exploit the forums and ask his silly questions! (he registered less than a month before and this is his first post)
THIS IS A COMMUNITY, NOT A FREE INFORMATION SERVICE CENTER!
Don't try it, just do it!
|
|
|
|
|
as tested, if creating name-less event - CreateEvent(0,0,0,0) - in both client and server sides (2 applications in same PC), when client SetEvent, server side can not receive the event.
my Q is:
why use name-less event and how does it work (in which case)?
thx
includeh10
|
|
|
|
|
Typically you use an unnamed event to communicate between two threads in the same process. In this case, you only call CreateEvent once, storing the event handle in some well known location.
You can also use DuplicateHandle to open a new handle to a handle you do know about that lives in another process. You might use some form of interprocess communications (window messaging, shared memory, RPC) to tell one process about the other process's event handle.
However, you can never reopen an existing unnamed event object using CreateEvent - you always get a new one for each call.
|
|
|
|
|
a handle is only valid in the process context, which created it!
so there are 2 ways to handle that.
send the app, which didn't create the event the handle, and use duplicatehandle, or give the event a name and let the other app open it!
Don't try it, just do it!
|
|
|
|
|
I'm trying to creat a new thread so I can call a function that has no user interaction and just processes some files. The process takes a long time so I want to use a thread so I can update its status on the main dialog window.
I tried AFXBeginThreat(func.cpp) nada!
Any help or direction much appriciated!
Thanks,
Jim
|
|
|
|
|
or just use CreateThread() function.
search the function in samples of VC CD, there are lots examples there and very easy to be used.
includeh10
|
|
|
|
|
Or, in fact, don't.
CreateThread does not set up the C runtime library correctly. You may get away with it in a project that uses the DLL version of the CRT, because the CRT DLL's DllMain does mostly sort it out.
If you're not using MFC, create a new thread with _beginthreadex . If you are using MFC, use AfxBeginThread , because again, some initialisation is required for the new thread.
|
|
|
|
|
For a good article read here![^]
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
jimNLX wrote:
I tried AFXBeginThreat(func.cpp) nada!
Threatening a function is no way to get it to behave! The first parameter to AfxBeginThread() is not a filename, but a controlling function for the thread. It has a signature of:
UINT MyThreadProc( LPVOID pParam );
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
hi,
my isp has a dtl (data transfer limit) so i would like to write an app that monitors my adsl connection.There is a checksite but it is pretty annoying you have to login each time you wanna check that.And there is no "remember me" checkbox
however i got no idea howto this what i mean is
get my download speed
get my upload speed
get the amount of sended/received bytes
i know the iphelper is the solution but i can't figure out howto get what i want :s
does anybody know a semilair opensource project please to learn from please ? that would be great
|
|
|
|
|
get a modern online counter
Don't try it, just do it!
|
|
|
|
|
Hi guys
Is there an easy way to export data in a List Control to Excel?
Talking about to export to excel, Is there another easy way to export any data in my app (supose data are in an array) to excel?
Best Regards
Doc
|
|
|
|
|
For very simple tables without special formatting I use CSV. CSV is a very simple database format which can be opened by Excel. All values are enclosed by "" and separated by commas. For a more detailed description see http://www.wotsit.org[^] and search for CSV.
Hope that helps
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|