Click here to Skip to main content
15,915,703 members
Home / Discussions / C#
   

C#

 
QuestionDatabase problem Pin
hany_hu29-Jun-06 2:23
hany_hu29-Jun-06 2:23 
AnswerRe: Database problem Pin
PlayByTheRules29-Jun-06 3:13
PlayByTheRules29-Jun-06 3:13 
AnswerRe: Database problem Pin
V.29-Jun-06 4:42
professionalV.29-Jun-06 4:42 
AnswerRe: Database problem Pin
Not Active29-Jun-06 5:08
mentorNot Active29-Jun-06 5:08 
QuestionHow do I clone events? Pin
Daniel Persson29-Jun-06 2:12
Daniel Persson29-Jun-06 2:12 
AnswerRe: How do I clone events? Pin
Super Lloyd29-Jun-06 2:25
Super Lloyd29-Jun-06 2:25 
GeneralRe: How do I clone events? Pin
Daniel Persson29-Jun-06 2:51
Daniel Persson29-Jun-06 2:51 
QuestionHow to manage DLL with complex parameters? Pin
abiisalwayshappy29-Jun-06 2:08
abiisalwayshappy29-Jun-06 2:08 
I have a compiled DLL by VC6.0, in with:
<br />
<br />
#include "argedit.h"<br />
<br />
#include "allocpool.h"<br />
<br />
<br />
<br />
template <class Node, class Edge><br />
<br />
<br />
class StreamARGLoader: public ARGEdit<br />
  <br />
{	public:<br />
      <br />
		typedef Allocator<Node> NodeAllocator;<br />
      <br />
		typedef Allocator<Edge> EdgeAllocator;<br />
<br />
   <br />
		StreamARGLoader(NodeAllocator *nalloc, EdgeAllocator *ealloc, <br />
<br />
			                      istream &in);<br />
<br />
      <br />
		static void write(ostream &out, ARGraph<Node, Edge> &g);<br />
      <br />
		static void write(ostream &out, ARGLoader &g);<br />
<br />
    <br />
	private:<br />
<br />
      <br />
		enum { MAX_LINE=512 };<br />
      <br />
		void readLine(istream &in, char *line);<br />
      <br />
		int  readCount(istream &in);<br />
      <br />
		void readNode(NodeAllocator *alloc, istream &in);<br />
      <br />
		void readEdge(EdgeAllocator *alloc, istream &in);<br />
  <br />
};


instruction file :
<br />
int main()<br />
  { // Create the allocators<br />
    NewAllocator<Point> node_allocator;<br />
    NullAllocator<Empty> edge_allocator;<br />
<br />
    // Open the file<br />
    ifstream in("graph.txt");<br />
<br />
<br />
    // Create the ARGLoader<br />
    StreamARGLoader<Point, Empty> loader(&node_allocator, <br />
                                         &edge_allocator, <br />
                                         in);<br />
<br />
    // Build the graph<br />
    ARGraph<Point, Empty> graph(&loader);<br />
<br />
    //......


And finally hihi i don't know how to using it in C#, i face problem about NodeAllocator and istream &in

Is this "StreamARGLoader" a void or a function?

[DllImport("GraphMatching270606.dll",
EntryPoint="StreamARGLoader",CharSet=CharSet.Auto)]
public static extern void StreamARGLoader(NodeAllocator *nalloc, EdgeAllocator *ealloc, istream &in);
AnswerRe: How to manage DLL with complex parameters? Pin
Judah Gabriel Himango29-Jun-06 4:37
sponsorJudah Gabriel Himango29-Jun-06 4:37 
QuestionResizing Panel in SplitContainer Pin
e_LA29-Jun-06 2:05
e_LA29-Jun-06 2:05 
AnswerRe: Resizing Panel in SplitContainer Pin
Judah Gabriel Himango29-Jun-06 4:38
sponsorJudah Gabriel Himango29-Jun-06 4:38 
AnswerRe: Resizing Panel in SplitContainer Pin
LongRange.Shooter29-Jun-06 8:19
LongRange.Shooter29-Jun-06 8:19 
AnswerRe: Resizing Panel in SplitContainer Pin
e_LA29-Jun-06 20:12
e_LA29-Jun-06 20:12 
QuestionClass Relationships Pin
Brendan Vogt29-Jun-06 1:59
Brendan Vogt29-Jun-06 1:59 
AnswerRe: Class Relationships Pin
J4amieC29-Jun-06 2:32
J4amieC29-Jun-06 2:32 
AnswerRe: Class Relationships [modified] Pin
LongRange.Shooter29-Jun-06 8:22
LongRange.Shooter29-Jun-06 8:22 
QuestionQues. in VC#.Net Pin
Andy Rama29-Jun-06 1:37
Andy Rama29-Jun-06 1:37 
AnswerRe: Ques. in VC#.Net Pin
Daniel Persson29-Jun-06 2:26
Daniel Persson29-Jun-06 2:26 
GeneralRe: Ques. in VC#.Net Pin
Andy Rama29-Jun-06 3:09
Andy Rama29-Jun-06 3:09 
GeneralRe: Ques. in VC#.Net Pin
Daniel Persson29-Jun-06 3:51
Daniel Persson29-Jun-06 3:51 
GeneralRe: Ques. in VC#.Net Pin
Andy Rama29-Jun-06 4:28
Andy Rama29-Jun-06 4:28 
QuestionRowState Pin
matmir29-Jun-06 0:54
matmir29-Jun-06 0:54 
AnswerRe: RowState Pin
synunn29-Jun-06 3:31
synunn29-Jun-06 3:31 
QuestionAdd inline images To Mail C# Pin
Sushant Duggal29-Jun-06 0:02
Sushant Duggal29-Jun-06 0:02 
AnswerRe: Add inline images To Mail C# [modified] Pin
Corinna John29-Jun-06 1:10
Corinna John29-Jun-06 1:10 

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.