|
I am writing one application using DirectX in MSVC Visual studio6.0 if i have build my application and Run it using F5 and CtrlF5 the behaviours are different.
When i run my appllication in CtrlF5 mode it crashes (Access Violation)but this problem does not come when i run the same application using F5.
Any help will be appreciated.
Anil Kumar
|
|
|
|
|
when running in Debug Mode ( F5 ), most pointers ( AFAIK ) will be automatically initialized to NULL ( zero); and I also think that normal variables will also be initialized to some default values ( mostly 0 ).
make sure that you initialize every variables to some good default values.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi MAximilien,
So you mean to say that if Application is run ising CtrlF5 then some variables does take garbage value and may be the possibility of the crash.
Anyway thanks for the reply i will verify in my code all the pointers and variables to initialize NULL and 0s.
thanks
Anil Kumar
|
|
|
|
|
Hi, all.
I have an MFC C++ application which spawns a thread.
At some point the thread performs an XSL transform, but the CreateInstance function for the result node object fails.
HRESULT hr = pXMLOut.CreateInstance(__uuidof(MSXML2::DOMDocument40));
if (hr != S_OK)
TRACE0("could not create xml node");
The same code succeeds if run in the main application thread, is there some restriction for this?
Can it be overcome?
Thanks
Oscar
|
|
|
|
|
|
Hello,
I'm using the CSystemTray (MFC version) class from Chris Maunder and I have a small problem with the little icon in the system tray. Everything works perfect: the messages are routed fine, my popup menu is ok, my app minimizes and maximizes, there is a little square reserved for my icon, but the little problem is that I don't see my icon!?!?!
The behaviour is like when you make your icon completely transparent. You only see a background. I use the standard application icon (IDR_MAINFRAME). It has both the 16 bit and 32 bit version filled with nice colors, but my icon doesn't seem to show itself.
I also tried other icons, but they don't seem to work.
Here is the code that shows and hides the icon:
<br />
m_TrayIcon.AddIcon();<br />
CSystemTray::MinimiseToTray(this);<br />
<br />
m_TrayIcon.RemoveIcon();<br />
CSystemTray::MaximiseFromTray(this);<br />
Did anybody experiance the same problem?
I also got the blogging virus..[^]
|
|
|
|
|
The only thing I can think of is to make sure you are passing a valid HICON to CSystemTray::Create(). I can repeat the behaviour you see by passing NULL as the HICON parameter.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Thanks for your reply! The problem was that the call to ::LoadIcon() failed. I was passing an invalid HINSTANCE parameter. I now use the CWinApp::LoadIcon() which works fine.
I also got the blogging virus..[^]
|
|
|
|
|
Hello,
I'm writing an app which intercepts dial-up attempts.
I've got a dll which is automatically loaded whenever a process loads RasApi32.dll.
This way, any call to RasDial is intercepted - and I verified this works.
But if I try to connect using Dial-up networking, the interception doesn't occur. Hence, I presume it doesn't use RasDial. I tried to intercept both RasDialA and RasDialW (although this last one shouldn't be implemented in Win98), and also an undocumented RasRial16 I found using the Dependency Walker on RasApi32.dll.
Does anybody know what it uses to establish dial-up connections?
I saw that there are other functions in RasApi32.dll which could be used for dial-up connections: RnaUIDial and RnaImplicitDial, but these are undocumented api, and I don't know their prototype - so if someone knows the prototype, any help is welcome.
Thanks
Antonio
|
|
|
|
|
|
This doesn't solve my problem.
My first attempt in detecting dial-up connections was to use RasEnumConnections - the problem is it detects the connection AFTER the connection is established, but I need to detect it BEFORE the number is dialled.
Anyway, tnx for the info.
Antonio
|
|
|
|
|
|
Just as the previous one. This application monitors dial-up connections after the number is dialled. Too late for my needs.
Tnx
Antonio
|
|
|
|
|
Hello:
Someone knows how get the state of the menu shadow???
I'm working on a Owner Draw menu and i draw the shadow myself but it raise a conflict with the Windows shadow and i need to know when windows is using the shadow or not
Thank you in advance
|
|
|
|
|
Hi,
There is a problem, in executing a SQL query. After executing SQL query i want the result in an Object. My SQL query is something like this
SELECT TOP 1 '1234' AS Code, '211' AS Operation, 2 AS Source, 89 AS Destination, FROM xyz where xyzno = 10
How can i executing this SQL query and find the result of this query in an object. I am using VC++6.0 and my database server is Microsoft SQL .
if there is some code sample then its better.plz help me!!!!!!!!!!
Thanks for all
Regards
Rajan
|
|
|
|
|
Maybe you can use CDatabase and CRecordset ? I know you can use SQL instructions while opening a CRecordset that will then contains all the selected records. Take a look at CRecordset::Open
|
|
|
|
|
I have had good results using this project here:
http://www.codeproject.com/database/caaadoclass1.asp
They are very fast too.
|
|
|
|
|
I want to use WinCVS as my version control tool in the visual Studio 2003 .net.
I do not want to use it in an integrated manner (Jalindi Igloo is often suggested but do not want to use this). I will run WinCVS as a separate program and check-in and out as required.
What I want to know is which files will I have to import to allow me to reproduce a project? Some of the extensions taht may be cause for concern is *.resources, *.pdb, *.projdata, *.suo ... there is s along list but what to a really need?
What I want to know is what i need to put int the .cvsignore file?
Thanks,
Liam
|
|
|
|
|
Add only to your repository files that you can't recreate. To check, do a 'clean solution' before you start adding files. For more information on what each file extension signifies check msdn. If you are unsure whether a file type is binary, try opening it in a text editor - however wincvs is pretty smart and most of the time it will autodetect the correct settings.
As a starting point, you should consider adding the following types as text:
*.sln
*.vcproj
*.cpp
*.cxx
*.c
*.h
*.hpp
*.hxx
*.rc
*.rc2
And the following types as binaries:
*.ico
*.bmp (and other image types)
You can safely ignore:
*.obj
*.exe
*.dll
*.lib
*.pch
*.ncb
*.suo
*.idb
*.pdb
*.bsc
*.ilk
|
|
|
|
|
Andrew,
Thanks for the reply - that is very useful.
I tried to to a clean but I could not find the menu option.
Building in the Development Environment according to the help page I should be able to:-
To clean the active project
On the Build menu, choose Clean.
But I don't have a Clean option. Any suggestions?
By the way I am using Visual Studio 2003 .net
Thanks
|
|
|
|
|
LiamD wrote:
I don't have a Clean option. Any suggestions?
'Clean Solution' is the third item in the build menu in a default install of Visual Studio 2003. If it isn't in the right place try customising your menus / toolbars
|
|
|
|
|
Hi,
Can anyone ols help me how to execute a Java executable/code from C++?
Is it possible pls help
Thanks in Advance
Ram
|
|
|
|
|
cberam wrote:
Can anyone ols help me how to execute a Java executable/code from C++?
Is it possible pls help
Do you mean launch a Java program from C++ or call Java functions from C++?
For the first see: java+exe[^]
Directly calling Java functions from C++ is done with JNI[^]. This is an extremely clumsy, ugly, and almost unusable interface. Better start a Java program and call C++ functions (in a DLL) from the Java program. This is comparatively simple.
|
|
|
|
|
Hi,
Is there any size limit on an executable created? My Loader application creates an executable which hosts certain data files. But the exe (having 2 GB size) fails to execute , while it was successful to execute exe having 1.5GB size. I use Win2k professional with 256MB RAM.
Waiting for your valuable comments
Thanks,
Vini
|
|
|
|
|
I don't have any definite knowlege on this - but it stands to reason that windows would not like this at all. I think you may just have to bite the bullet, and turn it into a loader and "companion file". If this is an installer we're talking about, and you absolutly must have one file, you could try producing an MSI file instead of a self extracting installer.
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^]
|
|
|
|