Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
H

HUMPPAAA

@HUMPPAAA
About
Posts
11
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • language codings
    H HUMPPAAA

    finaly I found the list :D http://www.iana.org/assignments/character-sets

    XML / XSL algorithms xml tutorial question

  • language codings
    H HUMPPAAA

    Hello, it's me again :p I'm searching on the web for over two hours now, but I have not found what I am looking for. So... can anyone provide me a link to a list of all possible xml character sets? charset example: -> gb2312 == Chinese Thank You!! :) ~uumppa

    XML / XSL algorithms xml tutorial question

  • Multilingual installer for c# application
    H HUMPPAAA

    Thank You sir. I made an installer with NSIS, which features everything i need. NSIS is a good and powerfull tool. bb ~humppa

    C# csharp question workspace

  • Multilingual installer for c# application
    H HUMPPAAA

    Hello, currently I'm writing an installer for my c# application in VS2003 (.net 1.1). The app is multilingual, so I want the installer to be too. I'm using the VS2003 build in "Setup-Project". I would like to have a dialog at the beginning of the installer which provides a "choose your language" option. Then all following dialogs should be displayed in the choosen language. Any idea if that's possible with the vs2003 build in setup-project? If not, which free installer-software provides that feature? Looking forward to your answers. Thx so far ~humppaaaaaaa!

    C# csharp question workspace

  • FolderBrowserDialog
    H HUMPPAAA

    Hi again, I found out that it works, when I start the application outside of VS2k3. It definitly does not work, when I start it inside of VS2k3 by hitting the "play" button. Maybe there is something wrong with my VS settings. Anyway thx ;-) ~Humppaman

    C# csharp question workspace

  • FolderBrowserDialog
    H HUMPPAAA

    Hi, I just found out that I've the same problem with the System.Windows.Forms.SaveFileDialog. ~Humppa

    C# csharp question workspace

  • FolderBrowserDialog
    H HUMPPAAA

    Hi, thanks for your reply. I checked it out with .ShowDialog(): System.Windows.Forms.FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); folderBrowserDialog.SelectedPath = System.Environment.CurrentDirectory; folderBrowserDialog.ShowNewFolderButton = true; DialogResult res = folderBrowserDialog.ShowDialog(); if(res == DialogResult.OK) { ... //do something } Unfortunatelly there is still the same problem. Please note that I'm running on WindowsXP and that the code is part of an internal class which is not inherited from UserControl or Form. ~Humppa

    C# csharp question workspace

  • FolderBrowserDialog
    H HUMPPAAA

    Hi, im developing an application in c# .net 1.1 using VS2k3. In that app I'm trying to open a System.Windows.Forms.FolderBrowserDialog. Here is the code: System.Windows.Forms.FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); folderBrowserDialog.SelectedPath = System.Environment.CurrentDirectory; folderBrowserDialog.ShowNewFolderButton = true; DialogResult res = folderBrowserDialog.ShowDialog(this.maindlg); if(res == DialogResult.OK) { ... //do something } It works just great, except that when I click on the "Create new directory" button, a new directory will be created, but not shown in the dialog. When I close the dialog and start it again, then the new created dir will be shown. So there is a need to refresh the directory list in the dialog when the user hits the "create new dir" button. Does anyone know how I can perform this? thx and best regards :) ~Humppa

    C# csharp question workspace

  • method declaration
    H HUMPPAAA

    Hello, my question today is, how do I declare a method which accepts the reference pointer on an other method as argument. here is some pseudo code to demonstrate what I mean. void humppa() {...} void IwantHumppa(????????){...} void Main() { IwantHumppa(humppa); } The "??????????" is the part I don't know and where hopefully you guys can help me! Thx! ~HUMPPAAA!

    C# question help

  • managed c++.net: allocating the memory for an array of struct in a coherent memory area
    H HUMPPAAA

    Hi, thank you for your reply! Finally I found the problem by my own. The problem was the structure: struct TMP { DWORD x; WORD z; }; A sizeof(TMP) told me that it's 8 Bytes big. The strange thing here is that a DWORD is 4 Bytes and a WORD is 2 Bytes big (confirmed by sizeof(DWORD) and sizeof(WORD). If you count it together it's 6 and not 8??? The DLL function expected an array of 6 Bytes structs. What it got was an array of 8 Bytes structs, which led to that the Dll got garbage while it was reading the second array element. What I did now, was splitting up the DWORD into two WORD variables: struct TMP2 { WORD x1; WORD x2; WORD z; }; sizeof(TMP2) says that it's 6 Bytes big now. Really strange.

    .NET (Core and Framework) csharp c++ help data-structures performance

  • managed c++.net: allocating the memory for an array of struct in a coherent memory area
    H HUMPPAAA

    Hi, first of all, plz excuse my rusty english ;) I'm writing a little wrapper in c++ .net which allows me to access some old unmanaged win32 c++ dlls from a c# program. There is one function in the dll which drives my crazy. It wants an array of struct as an argument, called by reference. Its code is looking like that (a bit simplified): the struct in c++.net and in the dll code: struct ParaList { BYTE adress; WORD length; }; the dll function prototype (in the dll -> non c++.net): BOOL RequestValues(ParaList list[], int listlength); I included it into my c++ .net like following code: [DllImport("mydll.dll",EntryPoint="_RequestValues@12")] extern "C" bool_cdecl RequestValues(ParaList *list, int listlength); What it does is: I can request the values of some parameters by executing the RequestValues() function. After that I can read the requested values by executing a readfunction(). I'm calling the function in managed c++.net like that: ParaList list[8]; list[0].adress = 0x1; list[0].length = 0x1; bool error = RequestValues(list, 1); //querying for one parameter value The problem now is: when the list only has one parameter (like in the example above) the function works correct. But when I request more than one parameter, the dll will put out some error. In a c++ mfc example the dll is working correct! I think the problem is related in the memory management of c++.net. I'm pretty new to c++.net. Am I right that in managed c++.net the allocated memory for an array must not be in sequence? So the single elements of the array are distributed all over the memory? In that case the dll would get only the pointer on the first array element but the second element is not the neighbour, so the dll reads garbage when it wants to read the data of the second array element. I tried a few things with __pin and __nogc keywords which led to nothing :( Does anyone have a clue how I can tell c++.net to allocate the memory for the array in a coherent memory area? Thanks for reading this! ~Sepp

    .NET (Core and Framework) csharp c++ help data-structures performance
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups