|
See here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thanx _AnShUmAn_
I'll check it out..
Regards
Programm3r
|
|
|
|
|
Programm3r wrote: The thing is I want to create a System (or User) DSN...using VC++.
Use SQLConfigDataSource() .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thanx David, I'll check it out...
Regards
Programm3r
|
|
|
|
|
David I have tried using that function but I get these error
error C2065: 'SQLConfigDataSource' : undeclared identifier
error C2065: 'ODBC_ADD_SYS_DSN' : undeclared identifier
I have included the following lib's:
- odbc32.lib
- odbccp32.lib
But nothing, what could be wrong?
Thanx
Regards
Programm3r
|
|
|
|
|
You need to #include odbcinst.h and odbccp32.lib
|
|
|
|
|
Thanx WhiteSky ....
Regards
Programm3r
|
|
|
|
|
Never mind I got it ..... :->
Regards
Programm3r
|
|
|
|
|
I just gave a thought on, can we change the language of the applications.
For ex:
Suppose Outlook and notepad are open. When we run an application and press a button on it the menu's etc change to the language that we specify.
like File,View,Edit are now being shown in English. As soon as we press the button in our application(to change the language) the menu changes(On Outlook and notepad changes to some other language like German etc......
I had two ideas to start with:
1) Develop a hook(WH_CBT or WH_SHELL)
2) System level programming. (That would be much more robust)
Does somebody here has the idea on how to achieve this ?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
ok i understand but i am not so good and i need some help , i will explain to you again :
My aplication is CDialog i use 3 edit boxes and 1 CListCtrl .
First i wanted to search in CListCtrl from 1 edit box and the answer if exist in CListCtrl in another edit box.Now i want this :
0 1 2
---------------------------------------------------
| NAME | City | Country |
---------------------------------------------------
|George| London| England |
---------------------------------------------------
|George|NewYork| USA |
---------------------------------------------------
1) m_name CEdit
2) m_City CEdit
3) m_rezult CEdit
3) m_list CListCtrl
so far i done this :
void CMyList::OnOK()
{
UpdateData();
m_list.RedrawItems(0,m_list.GetItemCount());
CString sName = _T("Name");
m_name.GetWindowText(sName);
LVFINDINFO stInfo = {0};
stInfo.flags = LVFI_PARTIAL;
stInfo.psz = sName;
int nItem = m_list.FindItem( &stInfo );
if( nItem != -1 )
{
// the item is in the list control
CString sSecondColumnText = m_list.GetItemText( nItem, 1 );
// set the text to the second edit box
m_rezult.SetWindowText( sSecondColumnText );
//---------------------------------------------------------------------------------//
}
}
All i want is to search for this :
if i write in m_name and in m_city when i push the button i need the answer in m_rezult (the search rezult)
ex: if i write in m_name George and in m_city London i need the answer in m_rezult England ! and so on ! if i search for George and NewYork i need the answer in m_rezult : USA !!!!!
PLZ!!!! Make your choice and help me if you ...
Thank you !...all !
Bravoone
|
|
|
|
|
Flaviu_2006 wrote: ok i understand
Obviously not, because you just started a new thread for the same problem.... AGAIN!
|
|
|
|
|
if you saw my reply and you tried to run it you dont need to make new thread
|
|
|
|
|
ok but maybe you have an ideea how to do it ! with an example plz!
i know you now !
Thank you !
Bravoone
|
|
|
|
|
You said that you need to an example but did you see example FindItem in msdn(loop)?
|
|
|
|
|
Flaviu_2006 wrote: Make your choice...
My choice would be for you to wait longer than 59 minutes before whining to us with another post.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I guess its a loop for this problem
while(message)
{
//if(message=true) then break;
//end if
}
|
|
|
|
|
its someone else how have a bater ideea ? and please an example !
Bravoone
|
|
|
|
|
please read the very first post in this forum.
|
|
|
|
|
When you pay for help, you can start demanding results after an hour. When you're asking for free help, you need to sit back and wait.
And flooding the forums with this sort of stuff only makes people call for your posts to be deleted, and does not inspire anyone to want to help you
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Flaviu_2006 wrote: if is someone who can help me? PLZ!!!!!!
Once again, this is a useless subject line. You are irritating everyone. Get a goddamm grip of yourself!
|
|
|
|
|
Wow, you waited a full 84 minutes before creating another post. Your patience is improving!
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Wt are .inl files in vc++? Any kind of info is most welcome
|
|
|
|
|
That's inline function file.
|
|
|
|
|
Some answers from google:
*.inl files contain the definitions of inline member functions.
inlsplit turns a .inl file into the corresponding .cc and .h files, placing an include guard (#ifndef _HEADER_H...#endif) around the .h file. It can also optionally generate preprocessor directives in the output files to tell the C++ compiler what line it is on in the .inl file (for error messages).
Hope it answers your question?!
Regards
Programm3r
|
|
|
|
|
I am using CxImage class. My code which prints a text file to a tiff file is
char * fileSrc="g:\\src.txt";<br />
char * fileDest = "g:\\dest.tiff";<br />
FILE *fp1,*fp2;<br />
fp1 = fopen(fileSrc,"r");<br />
fp2 = fopen(fileDest,"w+b");<br />
CxImage image(1024, 1024, 8, CXIMAGE_FORMAT_TIF);<br />
RGBQUAD c={255,255,255,255};<br />
HDC hdc = ::GetWindowDC(NULL);<br />
<br />
while((ch[0] = fgetc(fp1))!= EOF)<br />
{<br />
if(ch[0] == '\n' || ch[0] =='\r')<br />
{<br />
x=10;<br />
y+=10;<br />
}<br />
x+=10;<br />
ch[1]='\0';<br />
image.DrawString(hdc, x, y, ch,c, "Arial");<br />
}<br />
<br />
::ReleaseDC(NULL,hdc);<br />
int i = image.Encode(fp2, CXIMAGE_FORMAT_TIF);<br />
str.Format("image Encode Result- %d",i);<br />
m_List.InsertString(-1,str);<br />
<br />
fclose(fp1);<br />
fclose(fp2);
Every thing is going right except the main thing. What i am getting in tiff file is a total black image and nothing else.
How can i get the right image. Please help.
KIRAN PINJARLA
|
|
|
|