Kelley Bryant's Q&A profile
Visual C# How to serialize unexpected complex type contained in class being serialized.
Hello, hope you can help me, I can't get instances of SomeNode serialized using the XmlSerializer() public class SomeNode { public object Data = new CustomDataType(); } public class CustomDataType { ... } I'm trying to have a serializable tree-arranged collection of nodes, each node can hold an object instance of custom type (similar to the TreeNode.Tag property for example). When all the custom data is null I can serialize all the tree well (by serializing the root node - passing root node object to the method below). However when SomeNode.Data ...Show All
Visual Studio Express Editions New WinMain?
Hi, I'm trying to test out a chapter of a directx book, and I get errors like I can't overload winmain. Why is this happening When I go back to my old vc++ 6.0, it compiles fine (there's a linking error, but that has to do with directx 9 not being supported). I mean, this shouldn't be that difficult, should it I've started a new, empty win32 application (not console). I create a new, blank file called winmain.cpp and I paste in the code. I compile it and it spits out a bunch of errors: 1>winmain.cpp 1>c:\documents and settings\jombee\my documents\visual studio 2005\projects\erase_me_2\erase_me_2\winmain.cpp(32) : error C273 ...Show All
Windows Forms What is the event on a listbox when adding/removing items ?
Hi everyone, In my program, I have two different way to add objects in my listbox. One being by doing mylistbox.Items.Add(Myitem). and the other one by dataSource. As found the event for the onDataSourceChanged but it doesn't triger when adding or removing from the items collection. His there any events I could use thanks. abuck wrote: Hi everyone, In my program, I have two different way to add objects in my listbox. One being by doing mylistbox.Items.Add(Myitem). and the other one by dataSource. As found the event for the onDataSourceChanged but it doesn't triger when adding or ...Show All
Visual C++ MFC CArray conversion sintax for MFC CAtlArray
Hello! I'm new with ATL and i need some help in this problem: which is the equivalent MFC CAtlArray for m_Array variable declaration using MFC - CArray: CArray<CFVector3D,CFVector3D&> m_Array; kind regards, Ioan Thank you Martin! I'm using the m_Array to work with a class called CFVector3D. I have following your idea.. but i get 2 error error from compiler: error C2558: class 'CFVector3D' : no copy constructor available or copy constructor is declared 'explicit' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlalloc.h(292) : while compiling class-template member func ...Show All
Smart Device Development Setfocus caused Unhandled exception
Hi, An exception was caused When I setfocus on a listctrl.the following is the exception code: Unhandled exception at 0x80079cec in Album.exe: 0xC0000030: I don't know to catch and solve the exception. Your suggestion is appreciated! ps,windows mobile 5.0 smartphone, c++. Para This forum is intended to deal with issues directly related to the .NET Compact Framework. It appears that this question can better be answered by someone on one of the newsgroups for Windows Mobile or Windows CE. In order to get a quicker and more accurate response, please consider reposting this question to ...Show All
Visual J# I need System.setProperty(String, String)
Hi; I need to be able to set some system properties (for some unit tests). How do I do this In java it's System.setProperty("key", "value"); thanks - dave I have the following in my code: System.setProperty("key", "value"); and the compiler says there is no setProperty(String, String) method. thanks - dave ...Show All
Software Development for Windows Vista Dual boot vista beta2 64bit problem
I had a system with partition C windows xp 64bit partition D windows xp pro. pattion E Data. without thinking ahead I formated Partition c and installed vista beta 2 64bit in partition c. system only boots vista beta 2 64bit. How do I fix it so that I can get to partition d when booting. I have no production now. I’m sorry but this forum is dedicated to Vista development issue, not general Vista troubleshooting issues, instead you may want to direct your question to the Vista newsgroups or the Vista Community . ...Show All
Windows Forms Duplicate banner image when making an MSI.
Hello, when I create an MSI with customized banner image it shows both images over lapped. Is there a way to remove the default image or do I have to change the custom image properties and set the transparency layer to white and not clear as it is set to now. Thanks for any tips. Tim ...Show All
SQL Server Other databases stopped working
I have a similar problem but not with the sample databases. All the sample databases work perfectly fine but all my other databases that were hosted appear to have similar error "The database cannot be opened because it is version 607. This server supports version 603 and earlier. A downgrade is not supported" I'm using the SQL Server that came with Visual Studio 2005 Beta 2. Version 9.01116 Any ideas The error message indicates that your other databases were created in a version of SQL Server 2005 newer than the version of SQL Server included in the VS Beta2. Databases are not backward compatib ...Show All
Visual Studio Cursor Position
Does anyone know how to get cursor position (screen coordinates) from the editor I need to show custom popup window that needs to be shown below the cursor (like intelisense menu). Thanks. This thread has been super helpful in helping me cross the threshhold from an add-in programmer to a vsip programmer, so thanks! For future copy/paste, here's a corrected C# code sequence, which requires the following VSIP assemblies to be referenced: microsoft.visualstudio.ole.interop; microsoft.visualstudio.shell; microsoft.visualstudio.textmanager.interop. ServiceProvider sp = new ServiceProvider ((Microsoft.Visua ...Show All
Smart Device Development #ifdef for VS 2005 vs EVC 4.0
What is an #ifdef I can use to determine a compile is VS2005 vs eVC 4.0 Thanks JEK Hi, There is no such flag that takes care of the incremental change over eVC in VS 2005. The only flga that is useful is _WIN32_WCE which is defined for all those cases where the device side code differs from desktop code. The best place to get the information about the differences shall be msdn documentation or dicusssion forums. Thanks ...Show All
Visual C# Error Help please!
Hello and thank you for taking the time to read this, I'am building an application for a hyperthetical club and I've come accross an error that does not make sense well sort of but I do not see the way around it. In the code below I've placed: /////////////////////// ERROR Accures Here! where it normally jumps out of the code. I have a class with setters & getters as well, but I dont think it is the problem... Ive added data to the array and I wanted to spin it off into a file then read from that file. Please help or give me some sort of idea what the trouble is... Thank you Binary My Error: My exception throught this: object reference ...Show All
Visual Studio Express Editions Is it possible to shell an application seamlessly?
I need to be able to run an application such as notepad or calc in the same way that I can start a browser inside my VB app ie. make the spawned program appear to be just another window in my program. Has anyone done this before This isn't what's happening. The Webrowser control has been supplied as a wrapper for the Active-X webbrowser and you are using that. There are no such analogs for the utilties you mentioned. ...Show All
Software Development for Windows Vista OpenProcess for service PID from user app
We have a server application that can be run as a service. In order to communicate with with the server app, our client application, which runs under a user account, uses: OpenProcess( PROCESS_DUP_HANDLE, FALSE, server_pid ) This has worked with earlier windows versions, including Win 2000 and XP. With Vista, if the server runs as a service, when the client calls OpenProcess, it always fails with system error 5 (ERROR_ACCESS_DENIED "Access is denied"). The server has already attempted to allow any process to do this by granting PROCESS_DUP_HANDLE|PROCESS_QUERY_INFORMATION|SYNCHRONIZE using a PSID for SECURITY_WORLD_SID_ ...Show All
Visual C# c# draw on image
hi ppl., i dont know if this is the right place to post this, i have the next problem,, i have an asp web and i have an image on it,, i need to draw on the image,,, i need something like FillRectangle on windows forms,, is tehre any way to draw figures on an image on asp thx mig16 Well yes, but it requires you to load the image, modify it in memory and save it back to disk, so your ASP.NET page will be able to load the new saved image. // Load the image Image image = Image.FromFile( imagePath ); using (Graphics g = Graphics.FromImage(image)) { // Modify the image using g here... } image.Save( imag ...Show All
