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

.NET (Core and Framework)

 
GeneralRe: Remote COM+ client Pin
Finally Creamed24-May-03 22:14
Finally Creamed24-May-03 22:14 
GeneralRe: Remote COM+ client Pin
Giles26-May-03 0:14
Giles26-May-03 0:14 
GeneralWeird garbage collection Pin
solidstore21-May-03 23:33
solidstore21-May-03 23:33 
GeneralRe: Weird garbage collection Pin
The Limey22-May-03 17:19
The Limey22-May-03 17:19 
GeneralRe: Weird garbage collection Pin
Simon Gregory3-Jun-03 13:36
Simon Gregory3-Jun-03 13:36 
GeneralSystem.Net.Dll Pin
Anonymous21-May-03 20:31
Anonymous21-May-03 20:31 
GeneralRe: System.Net.Dll Pin
Anonymous21-May-03 21:50
Anonymous21-May-03 21:50 
GeneralRe: System.Net.Dll Pin
Anonymous21-May-03 22:15
Anonymous21-May-03 22:15 
Ok after some hair pulling and entering random code i did it! Why what i did works...I have no idea. I would REALLY appreciate it if someone could explain it to me. The article i referenced in the first post used c# (i think because it sure as hell wouldnt work in my c++ code). Here is what i got...

The article used...
using System;
using System.Net;

Then later had...
String strHostName = new String ("");
strHostName = DNS.GetHostName ();

I finally got it working in my c++ dll by using...
#using <System.DLL> //If i dont use it i get...

using namespace System;
using namespace System::Net; // error C2039: 'Net' : is not a member of 'System'

And later i used...
HostName = new String("");
HostName = Dns::GetHostName();


Now could someone please try and explain this. I though there was a class called DNS (all caps), but i had to resort to some Dns 'thing' (NOT all caps) with the :: notation to get at the GetHostName() function. This doesnt make sence to me since i though the .net framework was supposed to be language independent, yet it seems as if DNS and Dns are 2 different things.

Thanks in advance!





GeneralRe: System.Net.Dll Pin
Andres Manggini22-May-03 16:40
Andres Manggini22-May-03 16:40 
GeneralCan't close .NET application Pin
Piotr Mizera21-May-03 15:10
Piotr Mizera21-May-03 15:10 
GeneralRe: Can't close .NET application Pin
The Limey21-May-03 23:03
The Limey21-May-03 23:03 
GeneralRe: Can't close .NET application Pin
Piotr Mizera21-May-03 23:51
Piotr Mizera21-May-03 23:51 
GeneralRe: Can't close .NET application Pin
The Limey22-May-03 16:43
The Limey22-May-03 16:43 
GeneralRe: Can't close .NET application Pin
Tomas Petricek22-May-03 12:55
Tomas Petricek22-May-03 12:55 
GeneralRe: Can't close .NET application Pin
Piotr Mizera22-May-03 14:20
Piotr Mizera22-May-03 14:20 
GeneralEvent log entries&#8230; Pin
Ray Cassick20-May-03 17:30
Ray Cassick20-May-03 17:30 
GeneralRe: Event log entries&#8230; Pin
Richard Deeming21-May-03 8:55
mveRichard Deeming21-May-03 8:55 
GeneralDeployment queries Pin
Smitha Nishant20-May-03 0:32
protectorSmitha Nishant20-May-03 0:32 
General.NET control in Access Pin
SHaroz19-May-03 8:33
SHaroz19-May-03 8:33 
GeneralSerious .NET Bug Pin
Mike_V19-May-03 3:18
Mike_V19-May-03 3:18 
GeneralRe: Serious .NET Bug Pin
mikasa19-May-03 6:45
mikasa19-May-03 6:45 
GeneralLicensing and wrapping control Pin
Patrick Lassalle17-May-03 0:46
Patrick Lassalle17-May-03 0:46 
GeneralRe: Licensing and wrapping control Pin
Roger Alsing25-May-03 22:54
Roger Alsing25-May-03 22:54 
GeneralRe: Licensing and wrapping control Pin
Patrick Lassalle26-May-03 1:18
Patrick Lassalle26-May-03 1:18 
GeneralRe: Licensing and wrapping control Pin
Roger Alsing26-May-03 1:22
Roger Alsing26-May-03 1:22 

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.