Click here to Skip to main content
15,886,806 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to access specefic attribute of a table? Pin
Dave Kreskowiak24-Mar-13 6:50
mveDave Kreskowiak24-Mar-13 6:50 
GeneralRe: how to access specefic attribute of a table? Pin
behrad kiani24-Mar-13 6:54
behrad kiani24-Mar-13 6:54 
GeneralRe: how to access specefic attribute of a table? Pin
Dave Kreskowiak24-Mar-13 7:32
mveDave Kreskowiak24-Mar-13 7:32 
GeneralRe: how to access specefic attribute of a table? Pin
behrad kiani24-Mar-13 8:30
behrad kiani24-Mar-13 8:30 
Questionasp Pin
Member 993700223-Mar-13 17:09
Member 993700223-Mar-13 17:09 
AnswerRe: asp Pin
Richard MacCutchan23-Mar-13 22:22
mveRichard MacCutchan23-Mar-13 22:22 
AnswerRe: asp Pin
Abhinav S24-Mar-13 22:30
Abhinav S24-Mar-13 22:30 
QuestionManaged c++ dll struct members not visible in c# Pin
bonosa23-Mar-13 11:19
bonosa23-Mar-13 11:19 
In the c++-cli dll which is referenced in my c# project, I have

C++
namespace MatsWrapper {

  public struct MatsContact
  {
  public:
	  char* contactName;
	  char* fileName;
	  float lat;
	  float lng;
	  float heading;
	  int numContact;
  };


In my c# project I'm trying to access the members but they don't show up in the intellisense.

C#
unsafe{

MatsWrapper.Class1 oMats = new
MatsWrapper.Class1();
                    
                    
                 
MatsWrapper.MatsContact** contacts; 
contacts = oMats.CallMats(x);
int numContacts = oMats.m_numContacts;

 for (int k = 0; k < numContacts; ++k)
{
 
                                                               Contact newCtc;
                            
newCtc = Contact.Create(contacts[k]->contactName, ac.Latitude, ac.Longitude);
}


contactName doesn't show up when I do contacts[k]->contactName.
Why is this and how do I fix it?
Many thanks,
sb
AnswerRe: Managed c++ dll struct members not visible in c# Pin
jschell23-Mar-13 12:47
jschell23-Mar-13 12:47 
Questionmy namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
mmmickyyy22-Mar-13 0:49
mmmickyyy22-Mar-13 0:49 
AnswerRe: my namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
Eddy Vluggen22-Mar-13 1:07
professionalEddy Vluggen22-Mar-13 1:07 
GeneralRe: my namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
mmmickyyy22-Mar-13 1:42
mmmickyyy22-Mar-13 1:42 
AnswerRe: my namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
Abhinav S22-Mar-13 16:42
Abhinav S22-Mar-13 16:42 
Questionwhat is this ?? Pin
mmmickyyy22-Mar-13 0:04
mmmickyyy22-Mar-13 0:04 
AnswerRe: what is this ?? Pin
Pete O'Hanlon22-Mar-13 0:21
mvePete O'Hanlon22-Mar-13 0:21 
GeneralRe: what is this ?? Pin
harold aptroot22-Mar-13 0:47
harold aptroot22-Mar-13 0:47 
Questiontask in c# Pin
leosang21-Mar-13 23:52
leosang21-Mar-13 23:52 
AnswerRe: task in c# Pin
Nicholas Marty22-Mar-13 1:00
professionalNicholas Marty22-Mar-13 1:00 
GeneralRe: task in c# Pin
leosang22-Mar-13 1:31
leosang22-Mar-13 1:31 
GeneralRe: task in c# Pin
Nicholas Marty22-Mar-13 1:45
professionalNicholas Marty22-Mar-13 1:45 
GeneralRe: task in c# Pin
leosang22-Mar-13 1:53
leosang22-Mar-13 1:53 
Questionwhat is the problem ?? Pin
mmmickyyy21-Mar-13 23:16
mmmickyyy21-Mar-13 23:16 
AnswerRe: what is the problem ?? Pin
Nicholas Marty21-Mar-13 23:49
professionalNicholas Marty21-Mar-13 23:49 
SuggestionRe: what is the problem ?? Pin
Matt T Heffron22-Mar-13 7:29
professionalMatt T Heffron22-Mar-13 7:29 
QuestionObject reference not set to an instance of an object. Pin
mmmickyyy21-Mar-13 23:01
mmmickyyy21-Mar-13 23:01 

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.