Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: implementing rubber banding into a drawing program Pin
Tristan Rhodes31-Dec-03 6:42
Tristan Rhodes31-Dec-03 6:42 
GeneralRe: implementing rubber banding into a drawing program Pin
Heath Stewart31-Dec-03 11:06
protectorHeath Stewart31-Dec-03 11:06 
Generalhelp meeee plzzzzzz in ActiveX msChart control Pin
hebzzz31-Dec-03 3:27
hebzzz31-Dec-03 3:27 
GeneralRe: help meeee plzzzzzz in ActiveX msChart control Pin
Heath Stewart31-Dec-03 4:49
protectorHeath Stewart31-Dec-03 4:49 
GeneralRe: help meeee plzzzzzz in ActiveX msChart control Pin
Ivan Budiono31-Dec-03 13:27
Ivan Budiono31-Dec-03 13:27 
QuestionHow to duplicate controls from one form to another ?? Pin
nigs_krec31-Dec-03 3:17
nigs_krec31-Dec-03 3:17 
AnswerRe: How to duplicate controls from one form to another ?? Pin
Heath Stewart31-Dec-03 4:41
protectorHeath Stewart31-Dec-03 4:41 
Generaltlbimp marshaling problems. Pin
Tristan Rhodes31-Dec-03 2:45
Tristan Rhodes31-Dec-03 2:45 
I'm converting my idl file to a tlb file, which now works fine. I have the base classes for Drag and Drop in the file, but when I convert it to a dll via tlbimp, i get a lot of errors, that leads me to believe that I am missing out on a large number of type definitions.

Where do I go to import these?

Aditionaly, when comparing my DLL with the windows form DragDrop methods, a lot of my int32's are replaced with UInt32. Why is this the case?

All my return values are void, wheras, in the IoleDataObject, they are almost all exclusively int.

Looking at the reflector decompilation, some of the objects that my version tries to interpret and convert but fails to, are all stored as object, i.e. IEnumStatData and IAdviceSink. How would I set up tlbimp to set it up this way?

Also, many of my types now come with & appended after them when they are used in method descriptions. Why is this?

My compiled version seems to have added object's for all the base types, Bitmap, clip format, metafile, pallete, and a whole heap of IWinTypes and IAdviseSink.
I don't know where these are actualy coming from. Do they exist in the .NET run time assembly already? I thought they did.

my IDL file I compiled looked like this:

<br />
import "oaidl.idl";<br />
import "ocidl.idl";<br />
<br />
<br />
[<br />
	uuid(01020304-0506-0708-9010-011012013014)<br />
]<br />
library DragDrop{<br />
	import "objidl.idl";<br />
<br />
	enum tagADVF;<br />
	enum tagDATADIR;<br />
	enum tagTYMED;<br />
	enum tagCLIPFORMAT;<br />
<br />
	struct tagFORMATETC;<br />
	struct tagSTGMEDIUM;<br />
	struct tagSTATDATA;<br />
<br />
	interface IEnumFORMATETC;<br />
	interface IEnumSTATDATA;<br />
	interface IDataObject;<br />
};


Any advice would be welcome on this issue.

Cheers

Cata
GeneralRe: tlbimp marshaling problems. Pin
Heath Stewart31-Dec-03 4:37
protectorHeath Stewart31-Dec-03 4:37 
GeneralRe: tlbimp marshaling problems. Pin
Tristan Rhodes31-Dec-03 6:10
Tristan Rhodes31-Dec-03 6:10 
GeneralRe: tlbimp marshaling problems. Pin
Stephane Rodriguez.31-Dec-03 22:11
Stephane Rodriguez.31-Dec-03 22:11 
GeneralDefault Button for a Form Pin
Anonymous30-Dec-03 21:48
Anonymous30-Dec-03 21:48 
GeneralRe: Default Button for a Form Pin
Mazdak30-Dec-03 21:53
Mazdak30-Dec-03 21:53 
Generalmaking String Bitmap Pin
azusakt30-Dec-03 20:25
azusakt30-Dec-03 20:25 
GeneralRe: making String Bitmap(Modified) Pin
Mazdak30-Dec-03 22:00
Mazdak30-Dec-03 22:00 
GeneralRe: making String Bitmap(Modified) Pin
azusakt30-Dec-03 22:40
azusakt30-Dec-03 22:40 
GeneralRe: making String Bitmap(Modified) Pin
Mazdak30-Dec-03 23:13
Mazdak30-Dec-03 23:13 
GeneralRe: making String Bitmap Pin
Heath Stewart31-Dec-03 4:26
protectorHeath Stewart31-Dec-03 4:26 
GeneralRe: making String Bitmap Pin
azusakt7-Jan-04 15:50
azusakt7-Jan-04 15:50 
GeneralRe: making String Bitmap Pin
Heath Stewart7-Jan-04 18:09
protectorHeath Stewart7-Jan-04 18:09 
GeneralProblem with FolderBrowserDialog Class Pin
ta10030-Dec-03 14:56
ta10030-Dec-03 14:56 
GeneralRe: Problem with FolderBrowserDialog Class Pin
Heath Stewart31-Dec-03 4:09
protectorHeath Stewart31-Dec-03 4:09 
GeneralRe: Problem with FolderBrowserDialog Class Pin
ta1001-Jan-04 6:31
ta1001-Jan-04 6:31 
GeneralPrinting Form Pin
IntegraSoft30-Dec-03 13:44
IntegraSoft30-Dec-03 13:44 
GeneralRe: Printing Form Pin
Mazdak30-Dec-03 19:41
Mazdak30-Dec-03 19:41 

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.