Click here to Skip to main content
15,896,063 members
Home / Discussions / COM
   

COM

 
AnswerRe: Unable to emit assembly: Referenced assembly 'Interop.ADODB' does not have a strong name Pin
mla15415-Apr-09 7:53
mla15415-Apr-09 7:53 
Questionout process server crash......... Pin
contactjey13-Apr-09 6:11
contactjey13-Apr-09 6:11 
QuestionTAPI Looking for minimum required code for making outgoing calls Pin
Ron Segijn12-Apr-09 0:30
Ron Segijn12-Apr-09 0:30 
QuestionAtlAxAttachControl - An outgoing call cannot be made since the application is dispatching an input-syncronous call. Pin
bfoo759-Apr-09 13:20
bfoo759-Apr-09 13:20 
QuestionHow to create new object in C# for reading COM port. Pin
gaurav_quexst9-Apr-09 1:57
gaurav_quexst9-Apr-09 1:57 
AnswerRe: How to create new object in C# for reading COM port. [modified] Pin
Vozzie29-Apr-09 6:23
Vozzie29-Apr-09 6:23 
QuestionAdd-in express.. Pin
gothic_coder9-Apr-09 1:11
gothic_coder9-Apr-09 1:11 
QuestionIs VariantChangeType() have problem with BSTR to VT_I4 conversion with even numbers and odd numbers Pin
Shankarcodebase8-Apr-09 5:48
Shankarcodebase8-Apr-09 5:48 
Hi Guys,

I am trying to round the value of long value. But i have this value in data type Variant.BSTR.

I can convert to this value by changing its data type from BSTR to VT_I4 through VariantChangeType(), in this conversion this value will be get rounded to nearst integer.

Again i should convert this value from VT_I4 to BSTR by VariantChangeType().

This is working fine for ODD numbers but failing for EVEN numbers.

if(FAILED(VariantChangeType(&vtValue,&vtValue,VARIANT_NOVALUEPROP,VT_I4)))
{
ASSERT(false);
}
if(FAILED(VariantChangeType(&vtValue,&vtValue,VARIANT_NOVALUEPROP,VT_BSTR)))
{
ASSERT(false);
}

Ex: if vt.BSTR = "5.5"
after conversion to VT_I4 its value will be 6
But
if vt.BSTR = "6.5" My expected value is 7 here
but after conversion to VT_I4 its value will be 6 only.....any idea please...need to set anything while using this api...
AnswerRe: Is VariantChangeType() have problem with BSTR to VT_I4 conversion with even numbers and odd numbers Pin
Ujjwal Gangwal11-Jun-19 6:05
professionalUjjwal Gangwal11-Jun-19 6:05 
QuestionDLL missing? Pin
tom5720078-Apr-09 2:49
tom5720078-Apr-09 2:49 
AnswerRe: DLL missing? Pin
tom5720078-Apr-09 2:57
tom5720078-Apr-09 2:57 
QuestionVB ActiveX in C# Pin
tvks8-Apr-09 2:13
tvks8-Apr-09 2:13 
Questionhow to fix the IWebBrowser2 refresh problem Pin
benpeng2-Apr-09 22:56
benpeng2-Apr-09 22:56 
QuestionFree threaded model Pin
_80862-Apr-09 21:25
_80862-Apr-09 21:25 
AnswerRe: Free threaded model Pin
Roger Stoltz2-Apr-09 21:50
Roger Stoltz2-Apr-09 21:50 
GeneralRe: Free threaded model Pin
_80862-Apr-09 22:43
_80862-Apr-09 22:43 
GeneralRe: Free threaded model Pin
_80862-Apr-09 22:53
_80862-Apr-09 22:53 
AnswerRe: Free threaded model Pin
Roger Stoltz2-Apr-09 23:04
Roger Stoltz2-Apr-09 23:04 
GeneralRe: Free threaded model Pin
_80862-Apr-09 23:16
_80862-Apr-09 23:16 
QuestionHow to set the URL property of a WMP object in a Word .doc file? Pin
wangdave2-Apr-09 14:49
wangdave2-Apr-09 14:49 
QuestionLooking for links, books, articles on building .NET assemblies for use as COM servers Pin
cpkilekofp2-Apr-09 10:07
cpkilekofp2-Apr-09 10:07 
AnswerRe: Looking for links, books, articles on building .NET assemblies for use as COM servers Pin
Baltoro4-Apr-09 8:50
Baltoro4-Apr-09 8:50 
QuestionControl connection to EXE when calling CreateDispatch Pin
Tim Cook2-Apr-09 5:50
Tim Cook2-Apr-09 5:50 
AnswerRe: Control connection to EXE when calling CreateDispatch [modified] Pin
Baltoro4-Apr-09 10:00
Baltoro4-Apr-09 10:00 
GeneralSorry Pin
Baltoro4-Apr-09 11:11
Baltoro4-Apr-09 11:11 

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.