Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reflection problem Pin
Kenneth Haugland14-Jul-16 4:27
mvaKenneth Haugland14-Jul-16 4:27 
GeneralRe: Reflection problem Pin
Super Lloyd14-Jul-16 4:52
Super Lloyd14-Jul-16 4:52 
GeneralRe: Reflection problem Pin
Kenneth Haugland14-Jul-16 5:24
mvaKenneth Haugland14-Jul-16 5:24 
GeneralRe: Reflection problem Pin
Super Lloyd14-Jul-16 5:27
Super Lloyd14-Jul-16 5:27 
SuggestionRe: Reflection problem Pin
Richard Deeming14-Jul-16 4:41
mveRichard Deeming14-Jul-16 4:41 
GeneralRe: Reflection problem Pin
Super Lloyd14-Jul-16 4:52
Super Lloyd14-Jul-16 4:52 
GeneralRe: Reflection problem Pin
Super Lloyd14-Jul-16 4:54
Super Lloyd14-Jul-16 4:54 
JokeNo overload for method 'PassStructIn' takes 4 arguments Pin
Member 1224497214-Jul-16 4:03
Member 1224497214-Jul-16 4:03 
And in my usual fashion of cobbling together source codes before I have grasped the concepts, I give you this glorious error:

No overload for method 'PassStructIn' takes 4 arguments


The code in question happens to be a call to an unmanaged dll:

C#
class Program
    {
        public struct Quaternion
      {
          double w; double x; double y; double z;
      }

      [DllImport("YLScsDrawing.dll")]
      public static extern void PassStructIn(ref Quaternion myQuaternion);

        static void Main(string[] args)
        {
        Program.Quaternion myQuaternion;
        Program.PassStructIn(ref myQuaternion);

        //Yada Yada Yada

        //Then the threading of said function...

        // Abs threads
        Thread absoluteThread = new Thread(unused => Program.PassStructIn((double)absW, (double)absX, (double)absY, (double)absZ));
        absoluteThread.Start();
      	// Abs threads


Please advise on how to fix this...

Thanks.
GeneralRe: No overload for method 'PassStructIn' takes 4 arguments Pin
Eddy Vluggen14-Jul-16 4:05
professionalEddy Vluggen14-Jul-16 4:05 
GeneralRe: No overload for method 'PassStructIn' takes 4 arguments Pin
OriginalGriff14-Jul-16 4:32
mveOriginalGriff14-Jul-16 4:32 
GeneralRe: No overload for method 'PassStructIn' takes 4 arguments Pin
Member 1224497214-Jul-16 20:30
Member 1224497214-Jul-16 20:30 
GeneralRe: No overload for method 'PassStructIn' takes 4 arguments Pin
OriginalGriff14-Jul-16 20:38
mveOriginalGriff14-Jul-16 20:38 
GeneralRe: No overload for method 'PassStructIn' takes 4 arguments Pin
Member 1224497214-Jul-16 21:48
Member 1224497214-Jul-16 21:48 
GeneralRe: No overload for method 'PassStructIn' takes 4 arguments Pin
OriginalGriff14-Jul-16 21:54
mveOriginalGriff14-Jul-16 21:54 
QuestionIssue with accessing object in background thread when converter value updates Pin
Imagiv13-Jul-16 17:07
Imagiv13-Jul-16 17:07 
AnswerRe: Issue with accessing object in background thread when converter value updates Pin
Super Lloyd13-Jul-16 17:48
Super Lloyd13-Jul-16 17:48 
AnswerRe: Issue with accessing object in background thread when converter value updates Pin
Slacker00713-Jul-16 22:45
professionalSlacker00713-Jul-16 22:45 
AnswerRe: Issue with accessing object in background thread when converter value updates Pin
Gerry Schmitz14-Jul-16 5:32
mveGerry Schmitz14-Jul-16 5:32 
GeneralRe: Issue with accessing object in background thread when converter value updates Pin
Imagiv14-Jul-16 6:26
Imagiv14-Jul-16 6:26 
GeneralRe: Issue with accessing object in background thread when converter value updates Pin
Gerry Schmitz14-Jul-16 7:06
mveGerry Schmitz14-Jul-16 7:06 
Questionc# network programming(Server /Client ) Pin
Mostafa_Hosseini13-Jul-16 6:44
Mostafa_Hosseini13-Jul-16 6:44 
AnswerRe: c# network programming(Server /Client ) Pin
Super Lloyd13-Jul-16 13:17
Super Lloyd13-Jul-16 13:17 
Question[SOLVED] System.AccessViolationException When Calling Dll Function Again Pin
Django_Untaken13-Jul-16 5:39
Django_Untaken13-Jul-16 5:39 
AnswerRe: System.AccessViolationException When Calling Dll Function Again Pin
Dave Kreskowiak13-Jul-16 5:55
mveDave Kreskowiak13-Jul-16 5:55 
AnswerRe: System.AccessViolationException When Calling Dll Function Again Pin
Luc Pattyn13-Jul-16 8:33
sitebuilderLuc Pattyn13-Jul-16 8: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.