Click here to Skip to main content
15,909,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: C program to extract values from EXCEL file Pin
CPallini31-Jan-12 2:35
mveCPallini31-Jan-12 2:35 
QuestionRe: C program to extract values from EXCEL file Pin
Faez Shingeri31-Jan-12 17:33
Faez Shingeri31-Jan-12 17:33 
AnswerRe: C program to extract values from EXCEL file Pin
CPallini31-Jan-12 21:44
mveCPallini31-Jan-12 21:44 
GeneralRe: C program to extract values from EXCEL file Pin
Faez Shingeri31-Jan-12 22:51
Faez Shingeri31-Jan-12 22:51 
Questionfirmware coding in C Pin
Ebe7230-Jan-12 23:16
Ebe7230-Jan-12 23:16 
AnswerRe: firmware coding in C Pin
Richard MacCutchan30-Jan-12 23:37
mveRichard MacCutchan30-Jan-12 23:37 
AnswerRe: firmware coding in C Pin
CPallini31-Jan-12 2:25
mveCPallini31-Jan-12 2:25 
AnswerRe: firmware coding in C Pin
Bram van Kampen31-Jan-12 12:27
Bram van Kampen31-Jan-12 12:27 
Hi,

Ebe72 wrote:
step = (struct MyStep*)BigStep
given,
typedef struct MyStep {...structure
definition...};
const struct MyStep BigStep[]{...an array of MyStep...};


Sorry, but by itself, this is Absolutely Meaningless. Firmware, Hardware, or Software Coding, makes no Real difference. It is something written in 'C'.
Question 1. Does your Code Compile.
If it does, you're lucky!
Question 2.
Does your code do what it is supposed to do.
If the answer is 'Yes' set a number of breakpoints around where the structure is used, and that will soon tell you (May take some patience) what happens, and what's what.

If your code does not Compile, you probably left out a Header. If it compiles, but does not link, you left out Library References.

If it Compiles and Links, but does not do what you expect, go back to the Docks and find out what it was supposed to do in the First Place!

Set Breakpoints, and find out what's going on.

This is a process called 'Debugging' It takes Time Skill and cunning, and the gray cells of 'Hercule Poirot'. It cannot be thaught as such, but you get experienced with your best friend, your Compiler.
Famous Chestnuts:-
<br />
if(x=0){...Do Something...} (Never Happens)<br />
<br />
int x==1;<br />
<br />
for(x=0;x=10;x++){...Do Something...}<br />
switch(){// In VC5 Trashes the Compiler<br />
break;<br />
}<br />


Hope this helps, if not, we need to see a little bit more than two lines of code, part of a Structure Definition. We are Not mindreaders Smile | :)
Bram van Kampen

AnswerRe: firmware coding in C Pin
Erudite_Eric31-Jan-12 21:05
Erudite_Eric31-Jan-12 21:05 
Question::ifstream.open behaves differently in VC6 and VS2010 Pin
KASR130-Jan-12 22:31
KASR130-Jan-12 22:31 
AnswerRe: ::ifstream.open behaves differently in VC6 and VS2010 Pin
CPallini30-Jan-12 22:42
mveCPallini30-Jan-12 22:42 
GeneralRe: ::ifstream.open behaves differently in VC6 and VS2010 Pin
KASR131-Jan-12 3:24
KASR131-Jan-12 3:24 
AnswerRe: ::ifstream.open behaves differently in VC6 and VS2010 Pin
Albert Holguin31-Jan-12 3:37
professionalAlbert Holguin31-Jan-12 3:37 
GeneralRe: ::ifstream.open behaves differently in VC6 and VS2010 Pin
KASR131-Jan-12 3:42
KASR131-Jan-12 3:42 
AnswerRe: ::ifstream.open behaves differently in VC6 and VS2010 Pin
Albert Holguin31-Jan-12 5:17
professionalAlbert Holguin31-Jan-12 5:17 
GeneralRe: ::ifstream.open behaves differently in VC6 and VS2010 Pin
KASR11-Feb-12 7:29
KASR11-Feb-12 7:29 
Questionbasic Winsock / IOCP / UDP question Pin
SledgeHammer0130-Jan-12 13:01
SledgeHammer0130-Jan-12 13:01 
AnswerRe: basic Winsock / IOCP / UDP question Pin
Jochen Arndt30-Jan-12 22:19
professionalJochen Arndt30-Jan-12 22:19 
GeneralRe: basic Winsock / IOCP / UDP question Pin
SledgeHammer0131-Jan-12 5:01
SledgeHammer0131-Jan-12 5:01 
GeneralRe: basic Winsock / IOCP / UDP question Pin
Jochen Arndt31-Jan-12 5:51
professionalJochen Arndt31-Jan-12 5:51 
GeneralRe: basic Winsock / IOCP / UDP question Pin
SledgeHammer0131-Jan-12 6:27
SledgeHammer0131-Jan-12 6:27 
GeneralRe: basic Winsock / IOCP / UDP question Pin
Jochen Arndt31-Jan-12 6:43
professionalJochen Arndt31-Jan-12 6:43 
GeneralRe: basic Winsock / IOCP / UDP question Pin
SledgeHammer0131-Jan-12 6:58
SledgeHammer0131-Jan-12 6:58 
GeneralRe: basic Winsock / IOCP / UDP question Pin
Jochen Arndt31-Jan-12 7:14
professionalJochen Arndt31-Jan-12 7:14 
GeneralRe: basic Winsock / IOCP / UDP question Pin
SledgeHammer0131-Jan-12 7:19
SledgeHammer0131-Jan-12 7:19 

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.