computerwhiz
Programmer
I am wanting to be able to use a double quote within my string constant, but whenever I type them in the string is split and I get parsing errors. I am writing a program that parses a specific file format into a .CSV file, so I need to use " and not ' to identify the separate values.
Code:
#include <windows.h>
#include "Main.h"
static char g_szClassName[] = "MyWindowClass";
static HINSTANCE g_hInst = NULL;
static BOOL ReadyToParse = FALSE;
static LPSTR pszText;
Code:
static LPSTR Quote_A="'"; I want to use """
static LPSTR Quote_B="','"; I want to use "",""
Code:
static LPSTR Return="\r\n";
static LPSTR Header="'Number','Date','Remark','Gross','Deductions','Amount Paid'";
static int txtpos=0, count=0, adj=0;
static BOOL Neg=FALSE;
#define IDC_MAIN_TEXT 1001