|
Hi,
I am developing an application in VC++ Windows Forms using Visual studio 2005. I need to generate reports for the application. I tried using Report Viewer control in it.
After surfing the net i got a piece of code for report viewers in C#. I tried changing the code according to Windows Forms syntax...
But it does not work...Please if any one could help me with this.
Thanx in advance
shraddha
|
|
|
|
|
and getting selected text from static controls or rich text control, I can get selected position but dunno how to get text
can anybody give me a clue
thanks in advance
|
|
|
|
|
CRichEditCtrl::GetSelText
CRichEditCtrl::GetTextRange
--
=====
Arman
|
|
|
|
|
|
Thanks, that's what I wanted
|
|
|
|
|
You're welcome
|
|
|
|
|
Hello,
I've been creating a new application, and as I'm learning how to use the new IDE I've made a mistake:
I have created a new dialog and the new files realted to the new class (*.cpp and *.h) have been created in the main folder of the application.
I wanted that pair of files inside a subfolder and I've moved them.
I've gone to the "solution explorer" and then I've removed those files and added them again.
Now it seems that each time I try to add a new function to one of those classes the VC++ generates again the original files placed in the wrong folder.
How can I solve this?
As always thank you in advance.
|
|
|
|
|
When you use the wizard to add a function, you'll find the name of the file that the function will be added to in an edit box near the bottom right.
Simply edit that to have the path to your file. We also have that problem, as our .sln and .vcproj files are in a bld subdirectory under the main project directory, and our sources are in a src directory under the main directory.
So when we add a function, the file name may appear as
myclass.cpp and we simply change it to
..\src\myclass.cpp
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
I've solved that a few minutes ago, only by resetting the computer...
Thank you for your feedback.
|
|
|
|
|
Hi.
I have manage to plot sin(x) by calling gnuplot but the display of the graph is only for a split second. How do I make the graph show longer or continue displaying until the 'x' button (exit) is clicked?
The following are my codes:
<br />
pid = _popen("wgnuplot.exe", "w");<br />
cfile = fopen("cSinx.txt", "r");<br />
if ((pid > 0) && (cfile > 0))<br />
{<br />
printf("Open file suceeded!\n");<br />
system("wgnuplot.exe cSinx.txt");<br />
_pclose(pid);<br />
}<br />
cSinx.txt is a file where I put the command
|
|
|
|
|
how can i link libws2_32.a to my project
tamer
|
|
|
|
|
*.a file are linux libraries or libraries for MinGW (as far as I know, but my knowledge there is a little bit limited). Which compiler are you using ? If you use one of the Visual studio IDE, you need to link to ws2_32.lib instead.
|
|
|
|
|
after complete a project,I am not careful to delete the Combo Box.
I place a new Combo Box before and modify the ID property which is same to
the deleted.
But after modified ,the Combo Box did not display the item.
(the project run on .NET)
|
|
|
|
|
Your question is on the c++ or .Net
|
|
|
|
|
wangy275 wrote: But after modified ,the Combo Box did not display the item.
Double-check the .h file that contains the control IDs. In the dialog class that owns the combobox, what does the message map look like? How are you adding items to the combobox?
"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
|
|
|
|
|
#define IDC_COMBOBOXEX2 1006
Is your mean to modify the number 1006?
but where 1006 is used?
as you said ,how to modify the number of IDC_COMBOBOXEX2?
At last Thank you for the reply.
|
|
|
|
|
wangy275 wrote: but where 1006 is used?
It shouldn't be used anywhere. That's why IDC_COMBOBOXEX2 is defined.
wangy275 wrote: as you said ,how to modify the number of IDC_COMBOBOXEX2?
It most cases, you don't need to (unless there are duplicate IDs for the same dialog).
How are you adding items to the control?
"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
|
|
|
|
|
Hi,
I'm just confused. I am trying to implement video playback in a 2D-World using D3D. The best would be to have the video on a D3D-surface, so i chose VMR9 in renderless mode to do the dirty work :/. But i have come to a point where i'm just running against a wall: Although i'm doing quite the same as in the VMR9-Renderless sample, the program crashs while calling RenderFile(). Has anyone a working solution, which he could share?
|
|
|
|
|
Firedragonweb wrote: Although i'm doing quite the same as in the VMR9-Renderless sample, the program crashs while calling RenderFile().
Crashes where? How?
The VMR9 already draws by default to a Direct3D surface.
The IVMRSurfaceAllocatorNotify9 should help. See Supplying a Custom Allocator-Presenter for VMR-9[^]
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi all,
Environment:
Windows Vista, Visual Studio 2005.
I have developed an application, which is related to file operations. In Standard User (Vista) - [In Program Files], if i programmatically Create/Delete/Move files or folders it's giving Access Denied error.
But if i do same operation manually, it asks for Administrative password. If we provide it, it will Create/Delete/Move files or folders.
Can i do this programmatically? (i.e providing Administrative password).
Thanks in advance.
|
|
|
|
|
Please refer here[^] for more information.
Regards,
Paresh.
|
|
|
|
|
The document has nothing related to my problem..
|
|
|
|
|
Shell32.dll wrote: Can i do this programmatically?
Yes, assuming you have permission. Check out Vista's UAC.
"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
|
|
|
|
|
hi, can anyone guide me how to display a table(in .mdb file) in the form of list control
thanks
|
|
|
|
|