|
I had to use Visual c++ 6.0, but now I have Visual C++. Net Version. I begin to learn this language.
How can I Access data from my sql server database
|
|
|
|
|
|
mikobi wrote: How can I Access data from my sql server database
The same code can be used, although you might have to clean it up a bit. Even more so with VS2005.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
1.How can I Display Crystal reports from Visual C++.NET and to print them .
2. When I deploy my application on another machine, crystal report must be installed or not ?
I learn my self
|
|
|
|
|
Hello,
I would like to give the users of my application the possibility to create their own collection of C++ functions and to execute them.
Am I right to say that I could not use neither VC++ editor nor the compiler and debugger on runtime since the application must be rebuild when adding new functions?
And I was wondering about one solution that might be to add an editor and C++ script engine but I do not know if it is the best solution and how to start.
Could you please give me your advices and some entry points to start?
I thank you very much for your help.
|
|
|
|
|
Adding scripting to your application can be a great idea. I wouldn't expect end users to code in anything too close to C++ though, perhaps VB or even perl, python, javascript, smallbasic, even C#. If you're adding scripting you probably either want to go with something supported by the Microsoft ActiveX Scripting Engine for a desktop only app or one of the Web Browser hosted scripting languages for Web based apps.
If your target audience is developers then you probably ought to be shipping them components of one kind or another, like COM objects, which they can utilise in their own software via a published interface specification, rather than tieing them to scripting your application.
It really depends on what sort of app you're doing. I added ActiveX scripting support to a presentation graphics package ( a bit like Powerpoint ) a few years ago. That meant you could script the package in VBScript and JavaScript. It was a great fun project but it did take a few months. I found the source for the Microsoft ActiveX test container, which is knocking around the web, absolutely essential in doing this as it implements all the badly documented and obscure ActiveX stuff. Enjoy
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
My target audience is C C++ developers and my application is the final product therefore I cannot package it as ActiveX.
I've found some interesting stuffs on C++ scripting @
http://www.codeproject.com/useritems/Personal_C___Compiler.asp
http://root.cern.ch/root/Cint.html
|
|
|
|
|
Looks good. I would expect to be picking up a large Open Source code base with this approach which might be a lot of work to bring up to whatever standards your shop requires. If this isn't a problem then it looks like you might have yourself a cool solution. I might even have a peek at some of it myself. I had to implement syntax colouring in an RTF based editor a few years ago and it was extremely difficult with very few code samples at the time. It woudl be interesting to see how it's supposed to work
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Please help me do a query based on date.
I have m_pSet (a pointer to CRecordset) and a filter m_strFilter
my date is a ColeDateTime in the form of "mm/dd/yyyy"
I need to set: m-pSet->m_strFilter to select records with birthday=1/1/1970
Any ideas.
Paulo
|
|
|
|
|
paulosuckow wrote: I need to set: m-pSet->m_strFilter to select records with birthday=1/1/1970
So what's the problem?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The problem is that it doesn't return any thing. If I remove that the date part from the query it works. what is the right way of adding the date to the query .
Thanks
|
|
|
|
|
paulosuckow wrote: If I remove that the date part from the query it works.
What does your (incorrect) query look like?
Is this with Access, Microsoft SQL, or some other?
BTW, posting the same question barely two hours later is considered bad etiquette.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: BTW, posting the same question barely two hours later is considered bad etiquette.
What about 4 times in < 22 hours
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I am using a List box in my appln... When new items are added the new items are added down. I want the scroll bars to be always posistioned next to the last item being added.. Can any one help me how to achieve this ...
|
|
|
|
|
You can easily accomplish this selecting the last added item either with (MFC) CListBox::SetCurSel or (plain Win32) LB_SETCURSEL message.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks its working . . . but
can we just avoid that selection part . .. i jus dont want it to be selected..
is it possible to posistion the scroll bar alone...
|
|
|
|
|
Hi,
I am trying to display images for tree control nodes. My bmp file is having 256 colors. Problem is that at run time of the application, tree control is displaying blurred images. So I want to know is it not possible to display the tree control node images with 256 colors? If it is possible then how do that? Please help.
Regards,
Raj
|
|
|
|
|
Rajkumar Rachoti wrote: So I want to know is it not possible to display the tree control node images with 256 colors? If it is possible then how do that?
It should be possible.
How are you displaying the images?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Thanks a lot Mark for your time.
This my code to display the images:
m_imageList.Create(IDB_TREE_IMAGES,16,1, RGB(255, 255, 255));
m_navigationTree.SetImageList( m_imageList, TVSIL_NORMAL );
m_navigationTree.SetItemImage(m_hDisplay, 0, 0);
And IDB_TREE_IMAGES is a 256 colors bitmap.
Raj
|
|
|
|
|
I don't know why the images would be "blurred" unless the buttons aren't enabled.
Are the buttons enabled? Is bright white the "transparent" color for the bitmaps?
You could try this (although your code always works for me )...
Note I'm assuming 16x16 bitmaps in the imagelist -
CBitmap bitmap;
bitmap.LoadBitmap(IDB_TREE_IMAGES);
m_ToolBarImageList.Create(16, 16, ILC_COLOR8|ILC_MASK, numberofimages, numberofimagestogrowby);
m_ToolBarImageList.Add(&bitmap, RGB(0xFF,0xFF,0xFF));
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Thanks a lot Mark. That worked. Issue was with Image List which default takes 4 bits for color.
Raj
|
|
|
|
|
Thanks a lot Mark. That worked. Issue was with Image List which default takes 4 bits for color.
Raj
|
|
|
|
|
Cool! Good to know I was thinking all my bitmaps (except the 24-bit ones) were 8 bit, so I
thought it should work, but they are 4-bit
Cheers,
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hello board, I have programmed more than four years with MFC and I'm comfortable with it but I like to know should I consider programming in .Net? I specially want to know whether .Net is significantly faster than MFC or not and are there other advantages?
Thanks alot
|
|
|
|
|
How could it conceivably be faster, considering its a quasi-interpreted environment.
|
|
|
|