|
You're kidding, right? You don't pay me enough to debug your code for you, especially a chunk of code this long. I'm telling you how to find it yourself. You hope it helps me?!? No. Help yourself...
Let me show your what your NOT doing. I told you to check your return values before you try to use them. You're not doing that. For example:
RegistryKey *pKey = Registry::ClassesRoot;
pKey = pKey->OpenSubKey(S"ArtMoneyTable\\Shell\\Open\\Command");
Object *pValue = pKey->GetValue(S"");
Did OpenSubKey actually return a Registry object or is it null ? You're not checking this. You're just assuming that it worked and returned the object you expected. Now, your next line immediately tries to use the returned object, calling its GetValue method. If OpenSubKey returned null , which exception do you think will be throw when you try and execute?
Object *pValue = null->GetValue(S"");
I'm not saying this is your codes' problem, but this is a glaring example of why your code is failing and you can't find where the problem is. Always check your return values before you try to use them!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks It Worked. I am sory for the trouble, and i am only a begginer.
|
|
|
|
|
Thanks for your attention.
Currently I am working on a image processing program for PPC (using C#), yet there are two problems remained to be solved:
1. Rotating an image. Compact framework doesn't support the methods such as "Image.RotateFlip" or "Graphics.DrawImage(Image, Point[])", so I need to implement the rotation function completely by manually coding. Therefore I need an algorithm, which doesn't invoke any special system-provided method, to perform image rotation.
2. Saving an image. The compact framework doesn't support the Image.Save method, so I have to find another way to save a Bitmap object into a JPEG file.
Any kind of help will be greatly appreciated. Thanks.
|
|
|
|
|
I have code in C++ using Editbox, appending \r\n to each line to make a new line.
In .NET, using Textbox, I actually SEE the \r\n and everything is on one line.
Help!
Top 10 Geek Resulutions:
5. To decipher what that big room is, which has the blue ceiling and poor climate control.
|
|
|
|
|
|
Thanks.
BTW, I was using editBox.Text += "\r\n" and it wasn't working.
Using Environment.Newline works great.
I've never used the @ prefix in literals.
Top 10 Geek Resulutions:
5. To decipher what that big room is, which has the blue ceiling and poor climate control.
|
|
|
|
|
Hi,
I created a backup file containing sources around 2.5G. The compressed CAB file size is around 1 G.
Now when I am trying to extract the contents of the cab file, I am getting an error FDICopy() Failed: code 11[User aborted] while it reaches one particular file.
I tried viewing the list of files in the cab, I could see all the files I had asked to be archived.
Even when I tried to extract using Winzip, the winzip also encountered problems at the same file. I was trying to extract the cab file onto my D:\. The following was the error message -
"CAB file is continued on disk as in drive D:\...." "D:\ is not a CAB file..." "Error processing multi-part CAB file"
Pls help me as I need the cab file contents!
Thanks, Sheela
|
|
|
|
|
Hello, I am designing a very basic video game, and I want an image to move relative to key presses. This image is on top of a background image. I use picture boxes, however there is a rectangle surrounding the image I wish to move, and it does not look right. Is there a way to make it so that the moving image appears to be part of the background image, so when I move it around? Much like any video game out there with characters that move. Thank you very much
Michael L. Allen
|
|
|
|
|
Don't use picturebox ,but use Graphics.DrawImage() as it will draw over the back ground and when you call this.Refresh(),It will re paint the back ground and you casn after this call immediatly draw it again in another location.
|
|
|
|
|
Is there a specific way to call that function; I have tried this so far:
Bitmap* MyImage;<br />
System::String* image = "Resource/wiggle.gif";<br />
<br />
MyImage = new Bitmap(image);<br />
Graphics* Dr = new Graphics;<br />
Dr.DrawImage((dynamic_cast<Image*>(MyImage)),50,50);
however I get errors. Thank you very much for the help you have given me thus far.
Mike
|
|
|
|
|
Hi, I'm developing a stand alone system for Pocket PC. Currently facing problem on how to create database for Pocket PC. I using VB .net to develop the system. Anyone can help here? Thanks in advance!
|
|
|
|
|
The SQL Server CE tools on the PDA have a simple Query Analzyer tool, you can execute sql or visually design the tables with this tool.
|
|
|
|
|
Thank Dan_P for your reply. Just try to confirm with you. The SQL server CE tools is pre-installed on the PDA or it needed to get the software install in it.
|
|
|
|
|
|
Also the first time you deploy an app that uses SqlServer CE, it installs it.
Top 10 Geek Resulutions:
5. To decipher what that big room is, which has the blue ceiling and poor climate control.
|
|
|
|
|
This might not be the best forum for this question but I hope someone will be able to answer it anyway.
I have a bunch of nunit tests that I want to run. The problem is that they fail if run them all. If I run them one by one they work fine. These tests tests some sockets network code. The network connection is done using a static object. This means all tests use the same network connection object. I thought that the tests run one after the other, but it seems they run in parallell sometimes. This has the effect that a test connects to the server and starts doing what the test does and then another test opens a new connection with the effect that the state needed in the first tests is lost, and thereby causing the first test to fail.
So the real question is how NUnit runs the tests? Does it run them one after the other or (atleast to some degree) in parallell?
|
|
|
|
|
I've not noticed them running in parallel and I don't believe that they do but I have had similar problems and upon closer inspection determined that I have introduced some state dependencies. Anyway, the solution for me was to use Setup and Teardown (Nunit things) code to make sure state was setup correctly for each test that I ran.
That just might work for you too.
|
|
|
|
|
I've set Contolbox = false on mdi children so it appears to the user that the children are part of the mdi parent. This workls fine, but when the child is first created it has a titlebar that disappears after a split second, but it is there long enough to make the whole form appear to "bounce" when the titlebar goes away, causing the entire form to shift upward. I'm using VS 2003 and C#.
Any suggestions would be greatly appreciated.
|
|
|
|
|
I do this kind of UI trick here at work all the time so try what I do, just turn off the border altogether, that works great!
|
|
|
|
|
Hi...I'm working on the windows mobile 2003 platform (e200 spv) and would like to get the phones' location info and write it to a txt file.
Any suggestions?
dboy.spv
|
|
|
|
|
Hi...I'm working on the windows mobile 2003 platform (e200 spv) and would like to get the phones' location info and write it to a txt file.
Any suggestions?
dboy.spv
|
|
|
|
|
Hello,
Is it possible to have a solution containing 2 versions of an application (a normal and an extensive version)? It's very tedious to make this into 2 solutions because the 2 versions share common forms.
Any suggestions?
Thanks,
~Rafferty
|
|
|
|
|
It depends. It's pretty easy to have two builds of the one code base, to create two seperate versions. Or did you want two versions in seperate projects that are part of the one solution ? There's probably no reason why you can't do that, and have them both include source from a common file, but you still need to code a way for your app to not show extra features that you've not compiled into the program. It really depends on how complex the differences are - will removing one menu option remove all access to the advanced features, or is it right through the UI ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
No, the two versions are part of one project. So to do this, I simply have to hide the other features for the regular version and show them in the extended version? maybe i just create a
isExtended = false; in the Main() function and have an if(isExtended) {...} in the other areas.
Is this correct?
Thanks for the help,
~Rafferty
|
|
|
|
|
No i don't think that's good
Compiler will comile evrything. Only a hacker will get extendet future.
You should use:
#define IsExtended
#ifdef IsExtended
ToDo:
#endif //IsExtended
In this way the compiler will comile the extendet future.
if you don't want to compile, then just delete "#define IsExtended"
What do you think
|
|
|
|