|
Whats problem with this code?
|
|
|
|
|
Just tried your code (commented out the title change to FileBrowse because it did not compile), and it works like a charm. It must be another problem. What bugs me is that I already had that problem, but cannot remember what it was...
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
Have you supplied some filter's on the file dialog that you are opening?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
How to convert the COLOURREF into the String type.in order to display the selecting colour in the window useing pDC->TextOut();
ramanand
|
|
|
|
|
Use GetRValue(), GetGValue(), GetBValue() functions
-- modified at 6:39 Wednesday 23rd August, 2006
Regard's
Dhana
|
|
|
|
|
<br />
COLORREF color=RGB(255,120,200);<br />
CString Format;<br />
Format.Format("Red=%d, Green=%d, Blue=%d", GetRValue(color),GetGValue(color),GetBValue(color));<br />
|
|
|
|
|
How to find out whether a register key is present in the registry or not?
Thank you.
KIRAN PINJARLA
|
|
|
|
|
Just try opening it with RegOpenKey - this will fail if the key isn't present. If you need to check for a particular value, use RegQueryValueEx which will also fail if the value isn't present.
For more sophisticated applications you can recursively enumerate the registry using RegEnumKeyEx and RegEnumValue, but that shouldn't be necessary if you just want to check a single key.
|
|
|
|
|
Thank you very much matt.
KIRAN PINJARLA
|
|
|
|
|
|
Hi,
I have an MDI application with splitterwindows under VS 6.0 (one documenttype, but you can open different documents) . One splitter is fix, like an outlook bar and one will be replaced. When I click on Menue (load document) then my programm reads a specific file and open many other files and handle them.
Now I want to do something like this. In one view I insert a list of names and when I click on a button I want to split the list into groups and display them in differnet childframes. I also want the behaviour of that every childframe works in his own folder. When I click on the menue and do it manually it works. When I do it with my button, the childframes will be created correctly but when the files will be saved, they are all in the same folder.
When I click on the menue a function in the ProjectApp.cpp do the work. When I call this function from the view with theApp.Function() it works like I discribed. So my Idea is to send a Message from the view to the App, but it doesn't arrived. I tried it with GetParent() and AfxGetMainWnd()but nothing works.
Is here someone who has an idea how to solve my problem?
Thanks for help
yummi
PS: Sorry for my english but I hope you can understand what I mean.
|
|
|
|
|
Hello..
I need a function to windows like gettimeofday in linux.
Can you help me?
|
|
|
|
|
|
it was a possibility, but i want to get time in microseconds, and this functions only give me the time in miliseconds. Is there any function which return the microseconds?
thanks
|
|
|
|
|
You can get more bits by using GetSystemTimeAsFileTime and working with the result, which is in 100ns intervals.
However, you won't get any better results, because the system clock is only updated as often as the clock timer ticks, which on most Windows systems is approximately 15ms. To see what yours is, run ClockRes[^]. I'm sure this is true of Linux as well.
The system doesn't necessarily add 15ms every time the system timer ticks, it may add a slightly larger or smaller amount to allow for clock drift.
|
|
|
|
|
If you really need more accuracy then you'll need to use the QueryPerformanceCounter API: HighResolutionElapsedTimer and MS's KnowledgeBase has more details on this. It's not an actual 'time of day' though; just a high resolution timer you can use to time. If you need both time of day and very high precision timings, you'll need to combine the two methods (or even use an external hardware peripheral like a GPS receiver!)
|
|
|
|
|
Hi
i have created a bitmap and i want to load that to my dialog window.
how to load the bitmap into the dialog.
pls give me the sample code if possible
|
|
|
|
|
The Name itself implies the API.
::LoadBitMap(...).
Think Clever.
Uday kiran
|
|
|
|
|
reddy harish wrote: load the bitmap into the dialog.
Use BitBlt()/StretchBlt() API's
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
See LoadImage or LoadBitmap from resource or see CImage::Load and then CImage::BitBlt
|
|
|
|
|
Hi, i can capture frames with directshow but just with ICaptureGraphBuilder2 Interface so i capture an avi file,
i want to capture frames in my file (not avi), help please
thanks
Thanks
|
|
|
|
|
Use the SampleGrabber filter. I prefer the one that comes with the SDK since the source code is provided.
|
|
|
|
|
I split the window into 3 view.
some buttons in first view by clicking these buttons second view changed.
In the second view some buttons there by clciking these third view is changing
i attached the pictures to these button. in OnIntialUpdate() funtion . if i replace SOme X view with Y View, and again i repalcing Y with X view. the pictures are not showing..........
how i always get pictures to these buttons?
delete
|
|
|
|
|
kiranin wrote: if i replace SOme X view with Y View, and again i repalcing Y with X view. the pictures are not showing..........
Do you mean switch between views, is it?
Can you show some code?
|
|
|
|