I am not sure why this would happen. rather than using marshall you could try use StringBuilder instead of string..
ncjlee
Posts
-
Encoding problem with string from DLL -
serialize atextbox control[Serializable] private System.Windows.Forms.Button button1; at the form.designer.cs code..
modified on Saturday, January 17, 2009 8:11 AM
-
Platform InvokeNvm i got it :) // the lower word of wParam holds the controls ID // the HIWORD of wParam holds the notification event code // lparam will be the HWND of the control sending the message. SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
-
How to remove zero using Regxhi just for suggestion.. you can actually check the regex syntax by using another software such as regexbuddy ;)
-
Encoding problem with string from DLLprivate delegate int incomingCallDelegate(int callerID, [MarshalAs(UnmanagedType.LPStr)] string caller); int OnIncomingCall(int callerID, [MarshalAs(UnmanagedType.LPStr)] string caller) I think this should work..
-
Ploblem about multithread programing?This is due to data collision.. you could try ReaderWriterLock class, monitor lock , Synchronization Locks
-
Platform InvokeI am trying to pinvoke on real player. This is what i am doing <00001> 00202C0 S WM_COMMAND wNotifyCode:1 (sent from an accelerator) wID:200
//Pinvoke play
SendMessage(ihandle, WM_COMMAND, 200, 0x000);It doesn't work.. I know this is related to wNotifyCode:1 how can i actually set wNotifyCode = 1? Thank you
-
webBrowser Referrer (Windows Form)Ok now i am creating a button to send data to a website with POST method it works fine but the problem is when i press the button it shows me invalid referrer Is there anyway to change webBrowser referrer?
-
Mouseover outside the formthanks but, may i know how is actually API SPY 2.7 work? when we use mouse to mouseover others windows form object, it will show the object handle, text, class and so on. it zit related to as what you hav mentioned background processes?
-
Mouseover outside the formAny idea on mouseover outside the form? eg:the form is not on focus and when i mouseover a text from another program an action will trigger.
-
Jpeg to Gif animationok thankx a lot
-
Jpeg to Gif animationAny idea on combining a series of jpeg file to gif animation image??
-
Installation of applicationperhaps u can try at file menu --> build --> publish
-
Imaginary numberThankx :)
-
Imaginary numberany way to program so that visual basic 2005 express can calculate imaginary number because i am trying to write a program which is to count the root of cubic for example: dim a as double dim b as double dim c as double a = sqrt(b+c) ' how if the sum of b and C is not positive.. but i wan it to continue the the calculation
-
[Message Deleted]but it is not functioning.. when i insert 123+321+23 the answer given is 123 but not the sum of the equation
-
[Message Deleted]It is a mathematic evaluator in windows form wit 2 textbox and 1 button txtInput.text = evaluate(txtAnswer.text) I cant figure out where it the problem.. i mean in Calc_scan function
-
[Message Deleted][Message Deleted]