|
Did you look at how ValuesString is being constructed? The cause of your ' problem is right there?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
i did not get whatu are telling. actually all those values in the values string are text values. so them i have written as 'content' .
because in the sql sltatement they should be given as
insert into tablename values('text1','text2',number e.t.c);
so have used format('%s', variablevalue) for forming ValuesString .
just now have seen while trying to print into number fields it is giving normally but while printing text values , the value of the cell is shown as normally only but preceded by a ' symbol when double clicking on the cell.
after dblclk on cell the value is like '1234 for text,
copy cell contents and paste it elsewhere in note pad they appearing like:
ECMName MID_Hex
peninsula 5678
|
|
|
|
|
tejaswi_teja wrote:
i did not get whatu are telling. actually all those values in the values string are text values. so them i have written as 'content' .
because in the sql sltatement they should be given as
insert into tablename values('text1','text2',number e.t.c);
so have used format('%s', variablevalue) for forming ValuesString .
I understand now.
tejaswi_teja wrote:
just now have seen while trying to print into number fields it is giving normally but while printing text values , the value of the cell is shown as normally only but preceded by a ' symbol when double clicking on the cell.
after dblclk on cell the value is like '1234 for text,
copy cell contents and paste it elsewhere in note pad they appearing like:
ECMName MID_Hex
peninsula 5678
Since the single quote marks in each cell are for display purposes only (they tell Excel to treat the text exactly as you have entered it), and does not affect printing or pasting to other applications, is there any harm in leaving them there?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
nothing harm just. just i was afraid if sbdy access the contents of that file along its original contents these quotes may also come and disturb. thats why. no other problems.
|
|
|
|
|
Hello
I want to estimate distance between 2 distributions.
Which distance function more efficent?
If know any distance function, tell me that distance function name, pls?
Thank you so much
|
|
|
|
|
bulgaa wrote:
I want to estimate distance between 2 distributions.
Do you mean a Linux distribution? If not, please explain what a distribution is.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
If not, please explain what a distribution is.
and so, what "distance" is !
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
Are there any functions in C++ to get an ASCII-decimal-value of
an character?
for example: IN = 'A' -> OUT = 65
|
|
|
|
|
Sure.
char c = 'A';
int val = c;
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
atoi(char*) may work,if it does not, try to convert charvariable to char*. sprintf may be right function.
dlfkgj lsdfkglfkgjlfgl jldfk fldkk jk
|
|
|
|
|
In my SDI Application the following problem appeared all of a sudden: In the InitInstance function of the application class the following line
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
causes the error:
Error creating empty document ! (Translation from german, so the english errortext may be slightly different)
Tracing into the MFC code the error happens in the function CWinApp::ProcessShellCommand at the following statement:
if (!AfxGetApp()->OnCmdMsg(ID_FILE_NEW, 0, NULL, NULL))
Does anybody else have had this problem and found a solution ???
MS
|
|
|
|
|
This happens due to failure of creating frame window.
check your CMainFrame::PreCreateWindow function.
It may returning FALSE.
Narrow down the problem by commenting whole code in this function and un comment one by one.
You will definitely get problem.
else
carry the same check on OnCreate() function.
-- modified at 9:00 Monday 26th September, 2005
|
|
|
|
|
Oh such a sh*t. I had some old code in the views PreCreateWindow function which fails at the current version of the project. And so the creation of the view fails.
MS
|
|
|
|
|
Hi
I want to terminate one application which is running but for that I m not able to get the caption, classname or anything by GetWindowText or FindWindow().
Is there any way so that I can have HANDLE of that running exe and i can terminate that ?
Regards
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
Amarelia wrote:
...I m not able to get the caption, classname or anything by GetWindowText or FindWindow().
Why not?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
EnumWindows() will cycle through every single window on the machine. Your program should be in there somewhere. You need to provide EnumWindows with a function to call for each window handle. Then try using GetWindowText() or GetClassName(). Most times you can figure out which Window Text or Class Name you are looking for if you use Spy++ (comes with Visual Studio).
Hope this helps!
Danny
|
|
|
|
|
Amarelia wrote:
I m not able to get the caption, classname or anything by GetWindowText or FindWindow().
After redaing your messages, one of best idea is to save your current handle of window in some INI or registry at starting .. so that other application read it from that common location and perform teh required.. though it not good solution... but it's worth trying it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
In Debug Mode, can we remove our application with codes..
Iam opening the winword with my application, without closing the word i closed my appliaction, for the next time while iam running the appliacion an error is showing coz of my applaction still exits in the task manager.. is there any solution for closing my applaiction from the code?
|
|
|
|
|
Is your application spawning additional threads?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Perhaps try sending winword the WM_CLOSE message with SendMessage(), and send your own program the message, as well.
Hope this helps!
Danny
|
|
|
|
|
Hi all,
It is more of a windows question than Visualc++ related.
My questions are regarding the windows display settings.
[1]How Can I set "large","small" fonts settings under windows.Iam using WinXp & If I go to ControlPanel->Display,(Darstellung Tab,Iam using a German wINxP),I see the font->Normal,Large & Extra Large.
Is this the place for setting large & small Fonts.If yes,I see it only as Normal,Large & extraLarge under my system.
[2]
If I go to Settings->advanced Tab,I see the DPI setting combobox containing,96 dpi,120 & userdefined value. What is this setting for & How is it related to the screen resolution....
Hope someone could clear up my mind..
Thanks...
|
|
|
|
|
Hi all..
I want to set some time for a menu tooltip before it appears when the cursor is placed on the menu item.For eg if i place my cursor on the menu item and i do not want the tooltip to appear immediately, instead it should appear after the time which is set.
How can i do that?
|
|
|
|
|
check it out,
void SetDelayTime( UINT nDelay );
void SetDelayTime( DWORD dwDuration, int iTime );
default time is 500ms.
best of luk
thanx
|
|
|
|
|
HI THIS A CODE SNIPPET,
void CPenWidthsDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX, IDC_THIN_PEN_WIDTH, m_nThinWidth);
}
WAT DOES THIS DDX_ DO OR WERE IS THIS DEFINED AND CAN I OVERRIDE IT FOR MY CONVENIENCE AND CAN YOU SHOW HOW TO.
|
|
|
|