Click here to Skip to main content
15,867,686 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionReusing TCP connection when using HTTPWebRequest Pin
michalJ20-Mar-09 15:13
michalJ20-Mar-09 15:13 
AnswerRe: Reusing TCP connection when using HTTPWebRequest Pin
michalJ21-Mar-09 9:22
michalJ21-Mar-09 9:22 
QuestionCreating cron type job scheduler in asp.net c# (without SQL Server agent) Pin
sanah_asif20-Mar-09 3:24
sanah_asif20-Mar-09 3:24 
AnswerRe: Creating cron type job scheduler in asp.net c# (without SQL Server agent) Pin
damiaan28-Apr-10 4:38
damiaan28-Apr-10 4:38 
QuestionPassing data from a child thread Pin
vikingsimon19-Mar-09 22:23
vikingsimon19-Mar-09 22:23 
AnswerRe: Passing data from a child thread Pin
led mike20-Mar-09 4:43
led mike20-Mar-09 4:43 
GeneralRe: Passing data from a child thread Pin
Mark Churchill20-Mar-09 12:54
Mark Churchill20-Mar-09 12:54 
QuestionIs there any way to convert a legacy MFC dll to managed code in .NET? Pls help!!! Pin
Frank_Q19-Mar-09 16:11
Frank_Q19-Mar-09 16:11 
Dear all;

Recently our organization needs to convert a 3rd party’s MFC class library into managed code for usage in .NET. In the SDK, there is a header file and a dll library.

I only have little knowledge on wrapping unmanaged code to managed code. I would much appreciate if any one could give advice on how to implement.

Below shows the code in the header file for the dll library. I am quite confused on how to deal with the nested class and callback functions.

////////////////////////////Header File///////////////////////////////////////////////////////
#pragma once

#ifdef UNMANAGEDCODE_API_EXPORTS
#define UNMANAGEDCODE_API __declspec(dllexport)
#else
#define UNMANAGEDCODE_API __declspec(dllimport)
#endif

#include <sys/timeb.h>

class UNMANAGEDCODE_API MainClass
{
public:

MainClass ();
Virtual ~MainClass ();
Virtual bool StartUp(const TCHAR* pcszConfigFileName = NULL);
class NestedClass1
{
public:
// This is the entry for call back function
virtual bool OnNestedClass1() = 0;
};
Bool SetCallback(NestedClass1* callback); typedef struct NestedSruct1
{
unsigned int unId;
__timeb64 createTime;
}NestedStruct1;
const NestedStruct1** GetData(unsigned int& unCount);
};
QuestionIs there a way to get URL of a page from ActtiveX? Pin
budarin19-Mar-09 10:39
budarin19-Mar-09 10:39 
Questionneeded to accept amharic unicode characters using textbox in vb.net Pin
sanchezrafael19-Mar-09 3:09
sanchezrafael19-Mar-09 3:09 
AnswerRe: needed to accept amharic unicode characters using textbox in vb.net Pin
Binyam2315-Dec-09 20:35
Binyam2315-Dec-09 20:35 
QuestionAdding an attribute to a property in a partial class Pin
Bernard Laplace18-Mar-09 23:03
Bernard Laplace18-Mar-09 23:03 
AnswerRe: Adding an attribute to a property in a partial class Pin
Thiago Berti11-Jun-10 4:40
Thiago Berti11-Jun-10 4:40 
QuestionMail forwarding on MS Exchange 2007 Pin
deepak__sharma18-Mar-09 20:11
deepak__sharma18-Mar-09 20:11 
AnswerRe: Mail forwarding on MS Exchange 2007 Pin
Abhijit Jana22-Mar-09 0:45
professionalAbhijit Jana22-Mar-09 0:45 
GeneralRe: Mail forwarding on MS Exchange 2007 Pin
deepak__sharma23-Mar-09 18:02
deepak__sharma23-Mar-09 18:02 
QuestionDo I need to release .NET 3.5 SP1 to all users? Pin
PSU Steve18-Mar-09 4:36
professionalPSU Steve18-Mar-09 4:36 
AnswerRe: Do I need to release .NET 3.5 SP1 to all users? Pin
led mike18-Mar-09 5:35
led mike18-Mar-09 5:35 
GeneralRe: Do I need to release .NET 3.5 SP1 to all users? Pin
PSU Steve18-Mar-09 5:54
professionalPSU Steve18-Mar-09 5:54 
GeneralRe: Do I need to release .NET 3.5 SP1 to all users? Pin
Ravadre18-Mar-09 6:05
Ravadre18-Mar-09 6:05 
GeneralRe: Do I need to release .NET 3.5 SP1 to all users? Pin
supercat920-Mar-09 11:54
supercat920-Mar-09 11:54 
GeneralRe: Do I need to release .NET 3.5 SP1 to all users? Pin
Ravadre20-Mar-09 11:56
Ravadre20-Mar-09 11:56 
GeneralRe: Do I need to release .NET 3.5 SP1 to all users? [modified] Pin
led mike18-Mar-09 7:35
led mike18-Mar-09 7:35 
GeneralRe: Do I need to release .NET 3.5 SP1 to all users? Pin
Dave Kreskowiak18-Mar-09 10:45
mveDave Kreskowiak18-Mar-09 10:45 
GeneralRe: Do I need to release .NET 3.5 SP1 to all users? Pin
led mike19-Mar-09 4:33
led mike19-Mar-09 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.