Skip to content

C#

C# discussions

This category can be followed from the open social web via the handle c-065f1d12@forum.codeproject.com

93.7k Topics 383.1k Posts
  • 0 Votes
    1 Posts
    8 Views
    No one has replied
  • Calling a C++ DLL from C#

    c++ csharp question
    4
    0 Votes
    4 Posts
    17 Views
    A
    If you want to return 'sText', you must ref the var. Try this: [DllImport("BabMD5.dll")] static extern long EncodeText( string p_password, ref string p_encText, long p_size); EncodeText("testestest",ref sText,33); The Internet Give a Chance to Learn. I Do!
  • How can show a child window whith the main window

    tutorial question
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • Class.forName()

    csharp java com question workspace
    2
    0 Votes
    2 Posts
    8 Views
    C
    You can use the Assembly class to load assemblies at runtime, the GetType function to get an object's type, and the Activator.CreateInstance static function to create an object of that type: Assembly a = Assembly.Load("MyLibrary"); Type t = a.GetType("MyLibrary.MyClass"); object obj = Activator.CreateInstance(t); cheers, Chris Maunder (CodeProject)
  • WM_COPYDATA

    question csharp
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • C# and COM (Connection Points)

    csharp com tutorial question
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • problem registering class

    help csharp graphics question announcement
    2
    0 Votes
    2 Posts
    3 Views
    R
    Did you register your dll? Read this page.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpapndx/html/\_cor\_deployment\_and\_configuration.asp update: also this link.. depending on what you're doing.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfassemblyregistrationtoolregasmexe.asp
  • who can give me an example

    tutorial
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Question regarding C#

    csharp question workspace
    4
    0 Votes
    4 Posts
    22 Views
    L
    Where can I find an estimated number of C# developers?
  • Changing data on a different form

    csharp visual-studio graphics tutorial question
    3
    0 Votes
    3 Posts
    8 Views
    L
    Perfect! Except for the fact I didn't add the control. Thanks...
  • Search files

    tutorial
    2
    0 Votes
    2 Posts
    5 Views
    A
    The things you need is located in the namespace System.IO... I would do it like this: using System.IO; public void FindFiles (string path) { if (Directory.Exists (path)) { DirectoryInfo thisDir = new DirectoryInfo (path); FileInfo [] files = thisDir.GetFiles ("*url"); DirectoryInfo [] subDirs = thisDir.GetDirectories (); foreach (FileInfo f in files) { //Do what you should with the files... } foreach (DirectoryInfo d in subDirs) { FindFiles (d.FullName); } } } Andreas Philipson
  • Output to MS Word using C#

    csharp learning database oracle question
    2
    0 Votes
    2 Posts
    16 Views
    E
    Basically, what you'll need to do is use the Word OLE interface from COM interop. As a first step, in VS you add a reference to the word exe (I think) to your project, and that will give you a managed wrapper around the COM interfaces. You can also do this from the command line with tlbimp.
  • COM server in .Net

    csharp com sysadmin tutorial question
    3
    0 Votes
    3 Posts
    21 Views
    C
    I'm looking for an example to create a out-of process local com server (.exe file) // christian
  • Commercial Application Development in .NET

    csharp performance question code-review
    2
    0 Votes
    2 Posts
    14 Views
    R
    .net runtime is the child of Pcode. Pcode is semi-compiled thingy whatsit (dam shit I've forgotten the word for it). Any way this Pcode can in many cercumstances run faster or be smaller than its local machine specific counterpart. I bet you want me to explain how don't you? Darn it man, its been a million years since I read this in Program Now (do you remember that one, sigh, memories). Its something to do with the way Pcode can share functions at a level very close but not quite at machine level. Oh bugrit I can't remember. It just is ok!? We do it for the joy of seeing the users struggle.
  • Can .NET do this?

    question csharp c++ learning java
    2
    0 Votes
    2 Posts
    16 Views
    C
    Hi, Your DLLs will be able to be used in both Winforms and Webforms. The efficiency of the implementation depends on the how you use the DLLs. If you want to talk about it some more, I would need to know a little more about the application (client and server side) architecture. Cheers! Colin
  • how do u convert a char to an int?

    question c++
    4
    0 Votes
    4 Posts
    39 Views
    C
    If is a char to int use that Christian Graus said but if String to int, you only need to use the atoi function... Cheers Carlos Antollini.
  • about mdi child window

    csharp beta-testing tutorial question
    1
    0 Votes
    1 Posts
    10 Views
    No one has replied
  • Drawing a drag rectangle -- pls help.

    graphics help question
    2
    0 Votes
    2 Posts
    13 Views
    L
    The class 'System.ControlPaint' has some methods with the name 'Reversible' in them that draw onto the screen. If you use FillReversibleRectangle then you could draw four of them to get the drag rectangle you are looking for. There is only one problem with this though, you have to give a Color and so it will be a solid border around your control and not the stipled effect you want.
  • LPVoid and Beta2

    html com beta-testing tutorial announcement
    5
    0 Votes
    5 Posts
    18 Views
    A
    Thanks. Thats the way I tried it, though something you said made me think about the size and hence error 87. I tried a couple of pointer tricks and it worked! Again thanks for the tip on the change from LPVoid to IntPtr(If it was indeed a change :) )
  • About Path Select Dialog

    question learning
    3
    0 Votes
    3 Posts
    20 Views
    A
    In C#, i used a BrowseforPath() function in Shell32.dll. The Internet Give a Chance to Learn. I Do!