Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Array Problem. Pin
Richard MacCutchan3-Dec-11 0:25
mveRichard MacCutchan3-Dec-11 0:25 
AnswerRe: Array Problem. Pin
Addy Tas4-Dec-11 10:08
Addy Tas4-Dec-11 10:08 
Questiongetline Pin
jkirkerx2-Dec-11 11:21
professionaljkirkerx2-Dec-11 11:21 
AnswerRe: getline Pin
Chris Losinger2-Dec-11 11:45
professionalChris Losinger2-Dec-11 11:45 
GeneralRe: getline Pin
jkirkerx2-Dec-11 12:19
professionaljkirkerx2-Dec-11 12:19 
AnswerI'm stuck, not sure which direction to go Pin
jkirkerx2-Dec-11 19:16
professionaljkirkerx2-Dec-11 19:16 
GeneralRe: I'm stuck, not sure which direction to go Pin
Richard MacCutchan3-Dec-11 0:03
mveRichard MacCutchan3-Dec-11 0:03 
GeneralRe: I'm stuck, not sure which direction to go Pin
jkirkerx3-Dec-11 8:00
professionaljkirkerx3-Dec-11 8:00 
The code is for reading a sql text file, which is exported from sql management. By running the file, you can create a database and populate the data.

It's weird, or I'm reading the results wrong, but on get line, I get the every other character just like the socket program I wrote. I guess I am misinterpreting the data, and it is real unicode, with the 2nd character not programmed.

So one of the original code modules I had was like yours except for the small changes, but I was using ofstream, that kept erasing my file.

The cat works now since placing the null terminator in the creation of the pzSQLCommand, but only cats the first character "y", for "p" must be a special character that halts the copy. I need to walk through it and see.

The getline command returns this. LC 0 LR 0 LE 0 LA 0 LT 0 LE 0 and so on
+		szCommandLine	0x0012f0e0 "ÿþC"	wchar_t [1024]


The first file line, plus rest of command for reference

SQL
CREATE TABLE [dbo].[BatchSettlementIndex] (
  [BatchID] int IDENTITY(1, 1) NOT NULL,
  [BatchName] varchar(80) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
  [BatchDate] datetime NULL,
  [BatchAmount] decimal(10, 2) NULL
)
ON [PRIMARY]
GO


I guess I should move forward 1 move and get the next line working first, since the mechanics are better now. Your wisdom has solidified the design, in which I thank you for. If you think of something let me know.

FYI:
I'm almost done with all the little programs I need for my wizard. This is the next to last piece I need, then I can take all the parts, and compile them into some dll's within the project, and make a new gui to support them.

It's to the point where I have gone far beyond the need of InstallShield 2012, and will try the stock deployment to deploy this program, and let it download the asp.net stuff I wrote.
GeneralNextline Pin
jkirkerx3-Dec-11 8:26
professionaljkirkerx3-Dec-11 8:26 
GeneralRe: Nextline Pin
Richard MacCutchan3-Dec-11 9:13
mveRichard MacCutchan3-Dec-11 9:13 
Questioni can't load dll builded in debug unicode,what's difference between 'debug' and 'debug unicode'? Pin
Member 77984732-Dec-11 5:06
Member 77984732-Dec-11 5:06 
AnswerRe: i can't load dll builded in debug unicode,what's difference between 'debug' and 'debug unicode'? Pin
JackDingler2-Dec-11 5:19
JackDingler2-Dec-11 5:19 
AnswerRe: i can't load dll builded in debug unicode,what's difference between 'debug' and 'debug unicode'? Pin
Erudite_Eric2-Dec-11 5:44
Erudite_Eric2-Dec-11 5:44 
AnswerRe: i can't load dll builded in debug unicode,what's difference between 'debug' and 'debug unicode'? Pin
Richard MacCutchan2-Dec-11 6:20
mveRichard MacCutchan2-Dec-11 6:20 
Questionclass object as parameter of Template Function Pin
002comp2-Dec-11 0:29
002comp2-Dec-11 0:29 
QuestionRe: class object as parameter of Template Function Pin
CPallini2-Dec-11 0:43
mveCPallini2-Dec-11 0:43 
AnswerRe: class object as parameter of Template Function Pin
002comp2-Dec-11 0:50
002comp2-Dec-11 0:50 
QuestionRe: class object as parameter of Template Function Pin
CPallini2-Dec-11 0:53
mveCPallini2-Dec-11 0:53 
AnswerRe: class object as parameter of Template Function Pin
Chris Losinger2-Dec-11 1:29
professionalChris Losinger2-Dec-11 1:29 
GeneralRe: class object as parameter of Template Function Pin
CPallini2-Dec-11 1:32
mveCPallini2-Dec-11 1:32 
AnswerRe: class object as parameter of Template Function Pin
002comp2-Dec-11 1:30
002comp2-Dec-11 1:30 
GeneralRe: class object as parameter of Template Function Pin
CPallini2-Dec-11 1:44
mveCPallini2-Dec-11 1:44 
GeneralRe: class object as parameter of Template Function Pin
Addy Tas4-Dec-11 10:45
Addy Tas4-Dec-11 10:45 
Questionbad ON_EN_CHANGE management Pin
waltermei1-Dec-11 22:49
waltermei1-Dec-11 22:49 
AnswerRe: bad ON_EN_CHANGE management Pin
Code-o-mat2-Dec-11 0:38
Code-o-mat2-Dec-11 0:38 

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.