Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDirectX - Direct Show programming? Pin
$uresh $hanmugam29-Sep-09 18:35
$uresh $hanmugam29-Sep-09 18:35 
QuestionHow to disable non-visible dialog items Pin
FloatingMarc29-Sep-09 16:19
FloatingMarc29-Sep-09 16:19 
AnswerRe: How to disable non-visible dialog items Pin
includeh1029-Sep-09 19:30
includeh1029-Sep-09 19:30 
GeneralRe: How to disable non-visible dialog items Pin
FloatingMarc29-Sep-09 21:56
FloatingMarc29-Sep-09 21:56 
QuestionRun Time error Pin
monkeywrench1029-Sep-09 16:14
monkeywrench1029-Sep-09 16:14 
AnswerRe: Run Time error Pin
Cedric Moonen29-Sep-09 20:25
Cedric Moonen29-Sep-09 20:25 
GeneralRe: Run Time error Pin
monkeywrench1030-Sep-09 3:31
monkeywrench1030-Sep-09 3:31 
QuestionUsing an API Pin
Donguy197629-Sep-09 15:34
Donguy197629-Sep-09 15:34 
Hello

I am working on Visual Studio 2003 with WIN32 API's.

I want to use a Non-Win API inside my project. It's not a complex API and i already have the libraries linked into my project.

Below is the description of the API,

-------------------------------------------------------------------------
Function:

Void GetImageVersion(TCHAR *imageVersion, DWORD *size);

Parameters:

imageVersion -
[out] Pointer to an array in which the image version string is returned.

size -
[in/out] Pointer to a variable that specifies the size, in TCHAR, of the array pointed to by the BIOSVersion parameter. If BIOSVersion is given as NULL, when the function returns, the variable will contain the array size required for the BIOS version.

Remarks:

Call the function twice, first by giving imageVersion as NULL to get the array size required for the string. Then allocate a TCHAR array with the size required and give the array with its size as parameters to get the image version.
-------------------------------------------------------------------------

I am having little bit difficulty in understanding the implementation of this function. Especially with declaring a TCHAR and then calling this function twice, as described in "remarks" section.

Can anyone write a sample peiece of code and explain how to use this API function?

Thanks in advance.
AnswerRe: Using an API Pin
Saurabh.Garg29-Sep-09 16:13
Saurabh.Garg29-Sep-09 16:13 
GeneralRe: Using an API Pin
dipuks30-Sep-09 3:39
dipuks30-Sep-09 3:39 
GeneralRe: Using an API Pin
Saurabh.Garg30-Sep-09 4:00
Saurabh.Garg30-Sep-09 4:00 
QuestionWrite and read the same file in the same C program? Pin
Razanust29-Sep-09 14:02
Razanust29-Sep-09 14:02 
AnswerRe: Write and read the same file in the same C program? Pin
David Crow29-Sep-09 15:55
David Crow29-Sep-09 15:55 
Questionwhat other files can IE display if without software support? Pin
includeh1029-Sep-09 11:47
includeh1029-Sep-09 11:47 
AnswerRe: what other files can IE display if without software support? Pin
enhzflep29-Sep-09 12:03
enhzflep29-Sep-09 12:03 
AnswerRe: what other files can IE display if without software support? Pin
Saurabh.Garg29-Sep-09 14:19
Saurabh.Garg29-Sep-09 14:19 
GeneralRe: what other files can IE display if without software support? Pin
David Crow29-Sep-09 15:32
David Crow29-Sep-09 15:32 
GeneralRe: what other files can IE display if without software support? Pin
Saurabh.Garg29-Sep-09 15:37
Saurabh.Garg29-Sep-09 15:37 
GeneralRe: what other files can IE display if without software support? Pin
includeh1029-Sep-09 19:08
includeh1029-Sep-09 19:08 
GeneralRe: what other files can IE display if without software support? Pin
Saurabh.Garg29-Sep-09 19:14
Saurabh.Garg29-Sep-09 19:14 
QuestionWhy does upload/download change file size? Pin
includeh1029-Sep-09 9:21
includeh1029-Sep-09 9:21 
QuestionRe: Why does upload/download change file size? Pin
David Crow29-Sep-09 10:51
David Crow29-Sep-09 10:51 
AnswerRe: Why does upload/download change file size? Pin
includeh1029-Sep-09 11:19
includeh1029-Sep-09 11:19 
AnswerRe: Why does upload/download change file size? Pin
CPallini29-Sep-09 10:59
mveCPallini29-Sep-09 10:59 
GeneralRe: Why does upload/download change file size? Pin
includeh1029-Sep-09 11:35
includeh1029-Sep-09 11:35 

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.