Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Inserting text into text box Pin
Maximilien4-Oct-05 5:27
Maximilien4-Oct-05 5:27 
GeneralRe: Inserting text into text box Pin
si_694-Oct-05 5:38
si_694-Oct-05 5:38 
GeneralRe: Inserting text into text box Pin
bugDanny4-Oct-05 5:44
bugDanny4-Oct-05 5:44 
AnswerRe: Inserting text into text box Pin
bugDanny4-Oct-05 5:36
bugDanny4-Oct-05 5:36 
GeneralRe: Inserting text into text box Pin
si_694-Oct-05 5:42
si_694-Oct-05 5:42 
GeneralRe: Inserting text into text box Pin
bugDanny4-Oct-05 5:51
bugDanny4-Oct-05 5:51 
AnswerRe: Inserting text into text box Pin
David Crow4-Oct-05 8:29
David Crow4-Oct-05 8:29 
QuestionHow to get COM Variants International Pin
the_grip4-Oct-05 4:33
the_grip4-Oct-05 4:33 
We've got an application i'm working on that utilizes COM Variants and Excel (values are read in from a text file and output into Excel).

Everything is hunky dory when the user is under US International Settings. However, when our European friends try out the product, there are some strange results - one of which i'm curious about here.

The process works like this: we read in some data, send it to Excel, read it back out (probably not the most efficient, but it handles some interpretation of the data we need rather effectively and my boss keeps me on a tight budget, so i just stick to what is quickest to do), format the data according to user specifications, and save it back into the Excel file.

The problem is what Excel says about international data when it is read back out - in particular, international numbers.

To demonstrate, here is what happens in the US:

Value: 1,000.00 -> Read in as a number in the VARIANT object -> Output to Excel correctly.

In Germany:
Value: 1.000,00 (notice the number formatting change) -> Read in as a BSTR(!) in the VARIANT object -> Output to Excel as text instead of a number.

i've monkied around setting my Regional settings to Germany, etc., but no luck. Any advice on this one? COM seems to want to stay whitebread American, and i'm having trouble broadening its horizons.

Thanks!

-- modified at 10:34 Tuesday 4th October, 2005
QuestionTwo CPU's Pin
Richard Hudson4-Oct-05 4:12
Richard Hudson4-Oct-05 4:12 
AnswerRe: Two CPU's Pin
David Crow4-Oct-05 4:21
David Crow4-Oct-05 4:21 
GeneralRe: Two CPU's Pin
Richard Hudson4-Oct-05 4:43
Richard Hudson4-Oct-05 4:43 
AnswerRe: Two CPU's Pin
Bob Stanneveld4-Oct-05 7:44
Bob Stanneveld4-Oct-05 7:44 
AnswerRe: Two CPU's Pin
Blake V. Miller4-Oct-05 9:10
Blake V. Miller4-Oct-05 9:10 
Questionhow to convert unsigned char to COleVariant type Pin
snprani4-Oct-05 3:36
snprani4-Oct-05 3:36 
AnswerRe: how to convert unsigned char to COleVariant type Pin
John M. Drescher4-Oct-05 5:32
John M. Drescher4-Oct-05 5:32 
QuestionAcquireCredentialsHandle returns SEC_E_INTERNAL_ERROR Pin
sunit54-Oct-05 2:10
sunit54-Oct-05 2:10 
Questionhelp plz tell url of COM ebooks Pin
Anonymous4-Oct-05 1:33
Anonymous4-Oct-05 1:33 
JokeRe: help plz tell url of COM ebooks Pin
toxcct4-Oct-05 3:33
toxcct4-Oct-05 3:33 
QuestionHow to create a HUGE 2d array? Pin
Member 17264404-Oct-05 1:16
Member 17264404-Oct-05 1:16 
AnswerRe: How to create a HUGE 2d array? Pin
Trollslayer4-Oct-05 1:24
mentorTrollslayer4-Oct-05 1:24 
AnswerRe: How to create a HUGE 2d array? Pin
John M. Drescher4-Oct-05 2:49
John M. Drescher4-Oct-05 2:49 
AnswerRe: How to create a HUGE 2d array? Pin
Prakash Nadar4-Oct-05 5:43
Prakash Nadar4-Oct-05 5:43 
AnswerRe: How to create a HUGE 2d array? Pin
Rage_bla4-Oct-05 6:59
Rage_bla4-Oct-05 6:59 
Question1 pixel == 1 mil Pin
Member 17264404-Oct-05 15:53
Member 17264404-Oct-05 15:53 
AnswerRe: How to create a HUGE 2d array? Pin
karmendra_js4-Oct-05 23:24
karmendra_js4-Oct-05 23:24 

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.