Software Development Network Logo
  • VS Team System
  • Smart Devicet
  • Windows Vista
  • Game Technologies
  • IE Development
  • Visual C++
  • Audio and Video
  • Microsoft ISV
  • Visual FoxPro
  • SharePoint Products
  • Windows Forms
  • Visual C#
  • .NET Development
  • Visual Studio
  • SQL Server

Software Development Network >> Wyo's Q&A profile

Wyo

Member List

ngilbert
Petknep
J M B
testtelu
giarnz
corblet
AdeptBlue
mhawb
howco
Suganya Mahadevan
Tim Mostad
Robert W.
Matthijs Koopman
LaoZeng
Jeanne P
eldiener
edburdo
Radith
znrigtoiwqo
JawKnee
Only Title

Wyo's Q&A profile

  • Visual C++ C++ delete[] operator with multiple arrays

    I'm trying to figure out how exactly the delete[] operator works with multiple arguments. Say I have some large arrays created: double *a, *b; float *c; long long *d, *e; long w = 1024, h = 1024; a = new double[2*w*h]; b = new double[2*w*h]; c = new float[w*h]; d = new long long[w*h]; e = new long long[w*h]; When it comes time to de-allocate them, I had them all in a single delete[] statement: delete[] a, b, c, d, e; Well, this appears to only be de-allocating a and completely ignoring b, c, d, and e, still taking up large amounts of memory. In order to get them all de-allocated, I had to use 5 delete statements: delete[] a; delete[] b; delete[] c; delete[] d; delete[] e; Is this how the delete[] operator is supposed to work wi ...Show All

  • .NET Development Class serialization problem (with an Assembly as one of the members of the class)

    Hello, We are experiencing problem with binary serialization / deserialization of assembly (as a member of other class). Suppose we have (in C#): [Serializable] public class SomeDataContainer { public List<string> someImportantData; public Assembly dynCompiledAssembly; ... ... } dynCompiledAssembly is created with CSharpCodeProvider, contains a class and several methods. Then we serialize the SomeDataContainer class instance with BinaryFormatter (to disk). Everything's fine so far. While trying to deserialize the saved instance, a FileNotFoundException is thrown, specifying that it is not possible to load an assembly with certain name, version and evidence - in short, the same dynamically created assembly that was supposed (by simple ...Show All

  • Visual C++ "Add/removal operation is impossible" error

    For my application, I am trying to add event handler for menu item to CDocument, but Visual Studio (2005) IDE displays the following error message: "Add/removal operation is impossible, because the code element '(null)' is readonly" I can add the event handlers in my CFrameWnd class, but not to the CDoc/CView class. The same application is running fine with handlers added to CFrameWnd class. Can anyone tell me what sort of mistake(s) cause this message Thanks. This is a bug in the IDE. It is discussed at length in another thread on this forum, can't find it just now... ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA official release date

    I didn't see this in the FAQ, but does anyone know the estimated official release date for XNA ...Show All

  • .NET Development To Learn RegEx

    Hello, I will be working with text from files and manipulated them. Thus, I need to learn about RegEx. I know the HELP in visual studio has it and it even has examples, but those examples are not explained....all I see is a bunch of symbols that work together to get their results....They do not explain them So, if anyone knows where I can go for better explanation of regex, that would be great. I am working on c# visual studio 2003 .net MSDN docs are the way to go as well as your fav search engine. http://www.windowsdevcenter.com/pub/a/oreilly/windows/news/csharp_0101.html http://www.csharphelp.com/archives/archive21.html http://www.regular-expressions.info/dotnet.html http://www. ...Show All

  • Windows Live Developer Forums Navigate freely through IFrame element in activity?

    I have read some articles about the activity,Activities we made must be posted to gallery to review. If I used IFrame in my activity,and the content or the URL in IFrame are stored in database and will be read while activity is running. I want to ask this is legal or illegal. If this is legal,then I am confused why our activities must be posted to you,because we can place anything in our database as we like,MS only checks the skelton but not flesh. If this is illegal ,how do I do to navigate many pages in activity's little window. I would assume that this would be ok. The reviewers can't possibly test all permutations of input into the activity window, so I assume that they will test as mu ...Show All

  • Software Development for Windows Vista Building a RPC over SCHANNEL Application

    The following code snippet is returning 87: The parameter is incorrect. This code works fine using RPC_C_AUTHN_GSS_NEGOTIATE, RPC_C_AUTHN_GSS_KERBEROS, or RPC_C_AUTHN_WINNT I've made the appropriate calls to RpcStringBindingCompose, RpcBindingFromStringBinding. Do I need to call CoInitializeSecurity Must certificates be used Are there examples I can refer to SCHANNEL_CRED sChanCred; sChanCred.cCreds = 0; sChanCred.dwVersion = SCHANNEL_CRED_VERSION; sChanCred.cMappers = 0; // reserved sChanCred.aphMappers = NULL; // reserved sChanCred.paCred = NULL; // Client applications often pass in an empty list and either depend on Schannel to find an appropriate certificate or create a certificate later if needed. sChanC ...Show All

  • Visual Basic I need a delay in visual basic program

    I am writing a visual basic program that display the file from a directory in a list box the app has a button which calls routines to 1. delete files in the directory 2.put some files in the directory 3. get the file info from directory and add file names to a list box here is code for step 3 my sub My .Computer.FileSystem.CurrentDirectory = "C:\mtmp" ' Create a reference to the current directory. Dim di As New DirectoryInfo(Environment.CurrentDirectory) ' Create an array representing the files in the current directory. Dim fi As FileInfo() = di.GetFiles() Dim fiTemp As FileInfo For Each fiTemp In fi ListBox1.Items.Add(fiTemp.Name) Next fiTemp end sub ...Show All

  • Visual Studio Express Editions Difference between VS-2005 Standard Edition and VS-2005 Professional Edition

    Hi What are the main difference between VS-2005 standard edition and VS-2005 professional edition. I have installed Vs-2005 in my system, but i was not able to work with report viewer control so can any body help out in this issue. Thanks and Regards Jagan Product differences can be compared here: http://msdn.microsoft.com/vstudio/products/compare/default.aspx ...Show All

  • SQL Server Is this possible without using cursors?

    Hi! I have 2 tables: Person and Address Person (   PersonID int PK ) Adress (   AddresID int PK,   PersonID int FK,   Default  -- 1 if address is default for person ) so when I join those table it yelds (for example): p1  a1  1 p1  a2  0 p1  a3  0 p2  a4  1 p3  a5  0 p3  a6  0 Person may: - have one default addres and some non-default; - haven't default address; - have only default adres So proper result is: p1  a1          p1  a1 p2  a4    OR    p2  a4 p3  a5          p3  a6 I ...Show All

  • Visual Studio Express Editions StatusBar!!!

    Hi everyone, I have had it with this stupid thing (bring back that StatusStrip), what Im trying to do is place some items on this StatusStrip but some have to go to the left hand side, one in the middle and two on the right had side. Left contains 2 lables and an image box Middle contains 1 lable Right contains 2 lables How can I do this, I have tried panels, tables but it all ends up on the left or on the main form, someone please help, or tell me how to get the old VS 2003 status strip back. Thanks Scott Hi jrboddie, Thanks, just goes to show how you can play with something untill you about ready to change to a diffent language, when all along its been staring you slap bang in the face. Oh, silly me. Thanks for the help. Scott ...Show All

  • Visual Studio Express Editions Disable Unicode when compiling?

    Hi, When i compile a windows application, and using for example, MessageBox(), it calls MessageBoxW() instead, which means i cannot use a standard C string literal as the caption, or text arguments. So i want to disable unicode, and use plain ascii. How can i do this Thanks. Ah, thanks, yes, that is probably the standard way of encapsulating the strings. But I did figure out how to disable unicode, also, for those who don't need it. And that's by going to your Project Properties, under General, set Character Set to "unset", rather than Unicode or multi-byte. Thanks for the the tip though. ...Show All

  • Visual Basic USB driveletter

    Hello everybody, The last two day's i'm trying to enum my USB devices and the drive letter. With WMI i'm able to get a hole lot of information about USB, but i can't make the link to the associated drive letter. Does anybody have a hint how to accomplisch this With regards, Jurgen Careful with that approach as you can assign a drive letter manually, I for instance move the CD to Z:. For CD use if d.drivetype = drivetype.cdrom. Good luck, I guess you may have to use several methods to get to the right information you need. I know with my iPod code it only really works at identifying the iPod because the iPod has a known directory structure, but if that changed... If I come up with something else I will l ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Game State Class - Sharing Information

    I'm using the default XNA game template for the time being, as I'm not intimate with C# yet. I'm trying to set up a game state stack, using a class derived from the game class. The GameState class has UpdateMe and DrawMe functions that basically call protected methods Update and Draw in the Game part of the inherited class. I also have a gameState handler class that has a stack of GameState objects that it keeps track of, etc. If I use this encapsulated method of game states, how do I share information between game states. For instance, if I have a menu screen that shows character info, how do I share the character's stats between the main game state and the menu state. I figured using static class members was a bit crude, but I'm unsure o ...Show All

  • Visual C# OverflowException was Unhandled

    I'm declaring a Byte[] array whose size varies according to the size of the picture frame that i receive from a Socket connection. Now whenever I run the program, i get an Overflow Exception at the point where I declare the Byte[] array and set its size. Step by step debugging shows that the variable "size" , whose value i get from the server side program and which will eventually be equal to the size of the array, never goes above a certain limit. I even declare it equal to zero at the end of the loop just to keep things safe. However, when I run the program, the size of the long integer "size" is HUGE....and obviously, Byte[] array that size cannot be declared, so program throws an Exception. Why does the lo ...Show All

©2008 Software Development Network