|
The program now outputs duration however, this is something I dont understand.
If I run the program normally, meaning without debugging(stepping through it) it says the process takes 0.08000 seconds but if I insert a breakpoint when the file is closing and debug it, it will say the process takes 24.795 secs to do.
When I was debugging I put a watch on duration and that was the 24.795 was the correct output. If I run it without the debugging it says 0.08. How or why does debugging change the value of the variable duration?
|
|
|
|
|
Hi!
How can I get the path (read: executable file) to the default browser for http:// links?
I tried to get the .htm key in the registry, but this isn't the default browser for http:// links. And no, I cannot just use ShellExecute, I really need the executable file.
Any ideas??
Thanks and best regards,
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)
|
|
|
|
|
|
Its not on win2k nor win 2003 ;/
|
|
|
|
|
Hi. Are there any special compiler settings for visual C++ related to memory management for active-x DLLs writeen in C++?
my DLL is accessed from visual basic application and for even simple calls, seems to be growing by 50K everytime it calls a simple function. I have checked and double checked my malloc/frees. I do use send message api SendMessage to talk back to a visual basic component... but nothing more other than that.
somebody told me about some "release memory" option somewhere..... but i cannot find anything.
Another thing. If i compile with "Multithreaded" it works fine on WinXP and 2000. If i compile with "Multithreaded DLL" it works on XP and strange things happen on 2000. Im compiling on windows xp box.
if i pass a BSTR (by reference) from my DLL to visual basic. the VB app is responsible to free it, correct?
thankz....
beercoder
|
|
|
|
|
What is c++ and visual c++ is there a differance. what is better. does microsoft make both. what one is used to make 3d games
thx
|
|
|
|
|
Hello,
C++ is the language, Visual C++ is one IDE that can be used to develop C++ applications...
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
i hv asked a milion ppl with no use...i need to call an bitmap image in a c++ program and then accssing it's matrix of colors. if anyone could help i would be so greatful and thankful...
your's faithfully
|
|
|
|
|
Try to find hire:
http://www.coding-zone.co.uk/cpp/articles/140101imgproc.shtml
http://www.flounder.com/bitmapinfo.htm
|
|
|
|
|
how i can make my programe change data with another applications for examble how i can get and give data from my programe to internet explorer or any programe by using MFC dialog Box?
|
|
|
|
|
Hai,
I'm doing a dialog based app in win32 vc++. I want to click my button using the mouse right button...how should i do this..pls help if anybody have any ideas..
|
|
|
|
|
Hello,
Just out od curiosity, why do you post the same question as M81?
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
I am the same person...
When I posted using the name M81, it said that the message cannot be posted because of duplicate name. So I changed to M66 and posted again..After when I checked I saw both of the message posted..i dont know what went on..sorry for that..I am not registered..I just peeped in and posted my question.
I am using win32..anyway i figured out a way using subclassing..
thanks a lot.
|
|
|
|
|
I need to write an app that receives video frames through my firewire port. When these frames are in my VRAM I need to set some pixels and then view this particular frame.
Is this possible on a modern PC?
What references are there for this subject? I'm not interested in the audio or any other video source, I just need Firewire..I guess this will be directshow right? I checked some examples on this site but they don't show my video directly.
|
|
|
|
|
How could I do this? I have tried the following, but I get debug assertion errors and the image does not get placed on the button.
<br />
HRESULT hResult;<br />
CImage buttonImage;<br />
hResult = buttonImage.Load("path...");<br />
if (FAILED(hResult)) {<br />
CString fmt;<br />
fmt.Format("Error loading image");<br />
AfxMessageBox(fmt);<br />
}<br />
HBITMAP imageHandle;<br />
buttonImage.Attach(imageHandle);<br />
myButton.SetBitmap(imageHandle);<br />
myButton.UpdateWindow();<br />
Any help would be appreciated. Thank you!
|
|
|
|
|
I'm not sure if I have your solution since I can't see a call stack. But I find it peculiar that you try to attach and update the myButton window even when the image fails to load. If the image doesn't load, you print an error but then you still try to attach the image to the button anyway. That should be within else {} in association with the if{FAILED(hResult)){ .... }. have you debugged and actually stepped through the code to verify whether or not the failure case is being taken? If so, have you seen the call stacks? What kind of info are you seeing in the call stack window while debugging? A lot of times, there is a useful comment in the MFC code where the ASSERT method causes the exception; if you are running in debug mode using visual studio.
Good luck!
Shawn
|
|
|
|
|
Thanks for the reply. When I copied the code over I removed some of it that wasn't really relevent, and I took out the return statement. At any rate, I have run the code through the debugger and I don't get any errors. The image loads fine, but it just does not show up on the button. I will check the call stack tomorrow when I get a chance and post my results.
|
|
|
|
|
I have a whole project in VC++ which has data being stored in binary format using the usual CArchive class. I need to have this data written in xml format without touching the present code i have. So i need to have a wraper class which would store/load data in xml format.
What would be the best way of doing this?
Need urgent help on it.
sv42
|
|
|
|
|
My first thought was to inherit from CArchive, make a CXmlArchive, but overriding the lower level
Save, Load, etc functions. But CArchive is non-virtual, so that is a dead end.
Another option is to Archive into a memory "file", or a temp file and then parse that into XML.
I assume you know the binary format?
Iain.
|
|
|
|
|
I created a class cxmlarchive inherited from CArchive, and Iam overriding most of the functionalities of CArchive. in the extraction and insertion operators, i am writing and reading from xml. Is there a problem with that?
When I write into xml, i use WriteString, but when Iam reading it back, I am not sure how I can do it. Can u help me with that?
|
|
|
|
|
Hello
i'm starting a project with a friend who work with delphi 7, and i don't know how difficult could it be to mix two languages; we decided to use dlls and a semi plugin framework to work, but for example: the way delphi data access is (at least for me) too much diferent; can i make classes in C++/MFC and use in delphi or viceversa?, could i make controls in delphi to use with C++/MFC?, etc.
Thanks in advance, i'll appreciate all your comments on this.
|
|
|
|
|
Hello,
Functions in C++ use the calling convention _cdecl (stack cleanup by caller) you should import those functions in Delphi specifing that calling convention.
For the Delphi functions, you should specify (in C++) the WINAPI calling convention (since the PASCAL calling convention is no longer supported in windows.h) when importing those functions.
From here you should know how to interface the 2 languages...
Hope this is of any help.
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
i have just only can found this
#include "win31.h"
#include "win95.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#define INSTALL = HARD
char make_prog_look_big[1600000];
void main()
{
while(!CRASHED)
{
display_copyright_message();
display_bill_rules_message();
do_nothing_loop();
if (first_time_installation)
{
make_50_megabyte_swapfile();
do_nothing_loop();
totally_screw_up_HPFS_file_system();
search_and_destroy_the_rest_of_OS/2();
hang_system();
}
write_something(anything);
display_copyright_message();
do_nothing_loop();
do_some_stuff();
if (still_not_crashed)
{
display_copyright_message();
do_nothing_loop();
basically_run_windows_3.1();
do_nothing_loop();
do_nothing_loop();
do_nothing_loop();
}
}
if (detect_cache())
disable_cache();
if (fast_cpu())
{
set_wait_states(lots);
set_mouse(speed, very_slow);
set_mouse(action, jumpy);
set_mouse(reaction, sometimes);
}
/* printf("Welcome to Windows 3.11"); */
/* printf("Welcome to Windows 95"); */
printf("Welcome to Windows 98");
if (system_ok())
{
bsod(random_err());
crash(to_dos_prompt);
}
else
system_memory = open("a:\swp0001.swp", O_CREATE);
while(something)
{
sleep(5);
get_user_input();
sleep(5);
act_on_user_input();
sleep(5);
}
create_general_protection_fault();
}
plz help , my teacher wants me to look for win98 source , and all i can find is that , so, is it source code of win98 ? and if its, plz tell me somethings about it . thanks
|
|
|
|
|
You have GOT to be kidding
Artificial intelligence is no match for natural
stupidity.
|
|
|
|
|
Oooops! Your teacher wants to crack the code and make a GNU OS Win98, yeah? I think that this code is good enough for him
Robert-Antonio
|
|
|
|