Click here to Skip to main content
15,920,513 members
Home / Discussions / COM
   

COM

 
Generalchar** to VARIANT Pin
bvais23-Jun-05 11:01
sussbvais23-Jun-05 11:01 
GeneralRe: char** to VARIANT Pin
Lim Bio Liong23-Jun-05 15:12
Lim Bio Liong23-Jun-05 15:12 
GeneralRe: char** to VARIANT Pin
bvais23-Jun-05 18:23
sussbvais23-Jun-05 18:23 
GeneralRe: char** to VARIANT Pin
GuimaSun24-Jun-05 9:26
GuimaSun24-Jun-05 9:26 
GeneralRe: char** to VARIANT Pin
Lim Bio Liong24-Jun-05 23:54
Lim Bio Liong24-Jun-05 23:54 
GeneralRe: char** to VARIANT Pin
Jörgen Sigvardsson25-Jun-05 13:44
Jörgen Sigvardsson25-Jun-05 13:44 
GeneralRe: char** to VARIANT Pin
Lim Bio Liong25-Jun-05 19:39
Lim Bio Liong25-Jun-05 19:39 
GeneralVARIANT in VC 6.0 and Objects in C# Pin
btanveer23-Jun-05 6:09
btanveer23-Jun-05 6:09 
I am using TotalRecorder(ww.highcriteria.com) in my application developed in C#. My Application inetract with TotalRecorder through COM. Total Recorder provides a sample in VC 6.0 for saving the recorded file at a specified folder location. I have converted the VC 6.0 code to C#, everything is working fine except when i call the method that saves the recorded files, the method takes variant as input, while the wrapper for this method generated by VS 2003 takes object as input. I passed him with the required parameters but it gives error 'Method Not Implemented'. Both the codes are given below. Please help me in conerting this VC code (variants) to C# (objects)

This is the code in VC 6.0

_variant_t vartFileName;
VARIANT vFmt;
vartFileName = cFileName;
vFmt.vt = VT_ERROR;
vFmt.scode = DISP_E_PARAMNOTFOUND;
g_pTRDoc->SaveAs(vartFileName, vFmt);

I have converted this in C# like this

string FileName = "c:\test.wav";
rec.ActiveDocument.SaveAs(FileName,System.Reflection.Missing.Value);

Thanks

I am using TotalRecorder(ww.highcriteria.com) in my application developed in C#. My Application inetract with TotalRecorder through COM. Total Recorder provides a sample in VC 6.0 for saving the recorded file at a specified folder location. I have converted the VC 6.0 code to C#, everything is working fine except when i call the method that saves the recorded files, the method takes variant as input, while the wrapper for this method generated by VS 2003 takes object as input. I passed him with the required parameters but it gives error 'Method Not Implemented'. Both the codes are given below. Please help me in conerting this VC code (variants) to C# (objects)

This is the code in VC 6.0

_variant_t vartFileName;
VARIANT vFmt;
vartFileName = cFileName;
vFmt.vt = VT_ERROR;
vFmt.scode = DISP_E_PARAMNOTFOUND;
g_pTRDoc->SaveAs(vartFileName, vFmt);

I have converted this in C# like this

string FileName = "c:\test.wav";
rec.ActiveDocument.SaveAs(FileName,System.Reflection.Missing.Value);

Thanks

Basit Tanveer
Software Engineer
QuestionHow I can debug a dll file Pin
Anonymous22-Jun-05 23:37
Anonymous22-Jun-05 23:37 
AnswerRe: How I can debug a dll file Pin
ameysp23-Jun-05 23:56
ameysp23-Jun-05 23:56 
Generalcreating instance of an object Pin
pardis21-Jun-05 21:22
pardis21-Jun-05 21:22 
GeneralObtaining currently active IE window using IShellWindows Pin
VV114420-Jun-05 11:15
VV114420-Jun-05 11:15 
GeneralRe: Obtaining currently active IE window using IShellWindows Pin
GuimaSun23-Jun-05 10:30
GuimaSun23-Jun-05 10:30 
Generalsending data to dialog Pin
pardis17-Jun-05 20:19
pardis17-Jun-05 20:19 
GeneralRe: sending data to dialog Pin
GuimaSun23-Jun-05 10:02
GuimaSun23-Jun-05 10:02 
GeneralUsing FoxPro COM in Asp.Net Pin
BCKY17-Jun-05 13:41
BCKY17-Jun-05 13:41 
Generalget IE caret position (x,y) Pin
17-Jun-05 4:58
suss17-Jun-05 4:58 
GeneralAccess Violation in Release of COM+ object in Release Version Pin
ameysp16-Jun-05 20:01
ameysp16-Jun-05 20:01 
GeneralRe: Access Violation in Release of COM+ object in Release Version Pin
GuimaSun23-Jun-05 9:53
GuimaSun23-Jun-05 9:53 
GeneralRe: Access Violation in Release of COM+ object in Release Version Pin
ameysp23-Jun-05 23:27
ameysp23-Jun-05 23:27 
GeneralAdd RTP filter Pin
mausot16-Jun-05 0:43
mausot16-Jun-05 0:43 
GeneralHelp with IDropTarget Interface really needed Pin
Jim Parsells15-Jun-05 17:29
Jim Parsells15-Jun-05 17:29 
GeneralManipulate CWnd-derived object in ActiveX Control Pin
dhamilton15-Jun-05 12:15
dhamilton15-Jun-05 12:15 
GeneralRe: Manipulate CWnd-derived object in ActiveX Control Pin
dhamilton17-Jun-05 6:57
dhamilton17-Jun-05 6:57 
GeneralSharing Memory between two components with MapViewOfFile... Pin
metal_rob15-Jun-05 5:17
metal_rob15-Jun-05 5:17 

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.