|
Thanks for the answer.
I wonder if Microsoft will fix the WPF Designer in VS 2005?
|
|
|
|
|
|
Unlikely - they're pushing people towards Blend and VS2008.
|
|
|
|
|
VickyC# wrote: I wonder if Microsoft will fix the WPF Designer in VS 2005?
Probably not. They most likely are going to steer people towards VS2008...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I have a problem on how I will design my Enterprise Library Caching Block when my database is ORACLE in UNIX Environment which I have no control who will access my database to do Update, Delete and Insert.
Please help me enlighten.
Thanks,
Mark
|
|
|
|
|
Can you be more clear as to what your problem is?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Are there any caveats regarding this?
Calling all South African developers! Your participation in this local dev community will be mutually beneficial, to you and us.
|
|
|
|
|
Hello every one
I am developing a application in VB 2005
I am using On Error Goto to handle errors.
Now my issue is that I want to handle different type of errors in a function separately.
That is like
Do some thing if the database connection is not there
Do some thing else if the data is not found
And so on
I am not able to identify the errors in that way.. I am able to displaying the error number and description provided by the error object.
Is there any way to find out or a list of error numbers available?
|
|
|
|
|
nishkarsh_k wrote: I am developing a application in VB 2005
I am using On Error Goto to handle errors.
Why are you using On Error Goto with VB.NET? This is a throwback to the bad old days of classic VB and should be avoided like the plague. Structured error handling was introduced in VB.NET with try...catch...finally blocks. Have a look at this article[^]. You can set up multiple catch blocks for a try block to catch different types of errors.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
You should really go away from On Error... and instead use try/catch blocks as the other poster suggested.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
thanks every one for the reply..
I got rid of ON ERROR GOTO and finally have try and catch...
|
|
|
|
|
|
At a guess I would think it's something to do with the change from Managed C++ in 2003 to C++/CLI in 2005. I've not used MC++ or C++/CLI but I do know that there is an explicit difference in syntax between pointers and references in C++/CLI but in MC++ there isn't. Is it possible for you to upgrade the MC++ to C++/CLI and then try again? Though in theory backward compatibility should be preserved. Knowing MS there's probably some compiler switch you have to set.
If you don't get any joy in this forum you might try posting on the MSDN Forums. MS developers tend to pop up on there periodically.
Kevin
|
|
|
|
|
Is the Byte* pointing to an array?
If so, can you change the method to something like
array<Byte> ^some_method();
and have the method create and return an array<Byte>^?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I have a Windows service that has an installer class. I set the StartType to ServiceStartMode.Automatic , but after installation, it doesn't automatically start. What didn't I do?
BTW, the service starts fine if I do it in the SCM.
EDIT: I added the following code, and it works great:
class CLFCSServiceInstaller : ServiceInstaller
{
public override void Commit(System.Collections.IDictionary savedState)
{
base.Commit(savedState);
ServiceController controller = new ServiceController(this.ServiceName);
controller.Start();
controller.Close();
}
}
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Tuesday, December 18, 2007 12:36:59 PM
|
|
|
|
|
I'm creating a spy and packaging it in a COM library.
It is to be used by vbscripts for testing purposes.
I am able to search through the child windows of a window to find controls that already have a caption (i.e. buttons, checkboxes, radiobuttons.) using FindWindowEx(...) .
How would I be able to retrieve the handleID (HWND) of a control based on it's Name?
(i.e. textbox1 , ListView1 , TreeView1 , etc.)
I appreciate the assistance,
Cheers,
|
|
|
|
|
I think you can use "control.Handle" Or Textbox.Handle property to get the HWD.
|
|
|
|
|
hi
As part of my application i have to backup every day some important files into CD ROM, not manually it have to be automatic one (by programming), i implemented sehedular it will try to write into CD.,
i need to write some data into CD ROM, by C++ / vc .Net programming
is there any windows API ? or any thing to do ??
and i also validate the size of the DISK befor i write..
how can i do that??
thanks
iam a software engineer working for varisis technologies bangalore
|
|
|
|
|
|
Hi
I am trying to compile a website optimized for x64 processor architecture, however it does not work. I have selected x64 as primary platform on project options but whenever I try to debug my code, it gives that silly " Attempted to load a 64-bit assembly on a 32-bit platform. Use ReflectionOnlyLoad() instead if trying to load for reflection purposes. " error. What should I do?
Your help would be greatly appreciated
mca
|
|
|
|
|
mcamcamca wrote: Attempted to load a 64-bit assembly on a 32-bit platform
I think the error speaks for itself. You're trying to run 64-bit code on a 32-bit machine. That isn't going to work. In order to debug the code, you need to either set the project back to targeting a 32-bit machine, or move your development (Windows, Visual Studio, ...) to a 64-bit machine.
|
|
|
|
|
I have vista enterprise 64 bit installed on my pc. Morevoer .net framework 3.5 (x64) is also available. I am using .net 2008 rtm on this machine and still getting this error. What do I miss ?
mca
|
|
|
|
|
I don't have any 64-bit machines, so there's really nothing I can test.
But, from the sounds of the error message, Visual Studio is running in 32-bit mode. And after about 5 seconds of Googling, I found this[^].
|
|
|
|
|
It seems that vs tries to use 32 bit framework by default. I have to change this setting by using Microsoft.NET\Framework64\v2.0.50727\installutil.exe command. Your reference link really helps out.
I really thank you for your attention,
Sincerely
Can Akpinar
mca
|
|
|
|
|
Hello,
My .NET application locks up when the screensaver starts. I have no idea why or how to "debug" this.
Found no answer on google/msdn forums.
Hope someone can help me out ( any reason or way to debug this)
Regards,
Andy
|
|
|
|