|
Do you know your answers are great?
Thanks
|
|
|
|
|
Hi
I have to program, one is in c++ I have compiled with VStudio 2010, and one in c compiled in gcc.
In c program, I need data which come from c++.
how to export data from c++ to C? does any one have the sample code for this one?
thankyou
|
|
|
|
|
Data is data, it has nothing to do with what language is used to process it. Please try and explain your problem in more detail.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have a program in C++ compile with Visual Studio 2010. This program is to get data from joystick, this joystick will control robot in server pc.
in this client PC I have udp client server in C compile with gcc.
I need to pass data from joystick program to udp client program.
How can I do that? data is in char format, and input udp have the same format.
are there any source code example to do that?
|
|
|
|
|
Make a socket connection and send the data, suitably formatted, to your client. I don't understand what the problem is here, transferring data between clients and servers is how the entire world is run these days.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have udp server client connection it is in C program, but the problem is, that my joystick program in client is in C++, I want to pass C++ data to client C program.
thank you
|
|
|
|
|
There is no such thing as "C++ data", data is data, it's just a series of bytes. I cannot see how you are able to write C and C++ code and, apparently, understand UDP client/server, and yet do not understand this basic concept.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
|
Hi all,
Can any one tell me How to overlay text over a video available, using Linux Commands.
I have tried with ffmepg tool, But I can't able to make it possible.
The Command I used was,
ffmpeg -i Input.avi drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=HelloWorld:fontcolor=red@1.0:fontsize=70:x=00: y=40" -y Output.avi
An Error Message i got:
Unable to find a suitable output format for 'drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=HelloWorld:fontcolor=red@1.0:fontsize=70:x=00: y=40'
Please let me know, How to work it out or some other Linux tool to overlay a text over Video.
Expecting for the best reply soon
Thanks & Regards
Srivathsan.K.R
|
|
|
|
|
This is the C++ forum please try elsewhere.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Looking at the documentation xlSheetVisible property
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)
does this mean this property is exposed in excel.dll if so I only have the executable
thanks
|
|
|
|
|
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I am thinking I have to have some dll where this
Method is exposed
|
|
|
|
|
Yes, and you already showed that information in your original question; it is part of the Office interop. However, you need Microsoft Office installed on your system in order to access it. What exactly are you trying to do, and is this really a C++ question?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
OLE programming and since at work I cannt down load anything I want I am guessing what I am looking for is in nativeexcel.dll
The only thing I have on my machine is excel.exe
|
|
|
|
|
ForNow wrote: The only thing I have on my machine is excel.exe Then you should have the required DLL's also. Have a look here[^] for some suggestions.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi ALL!
VC++6.0, XP SP3, MFC Dialog-based App.
Adding a next item to the menu I've suddenly got a message "Out of memory. Unable to complete command". After restart it's impossible to load project clicking .DSW file: workspace stays empty, no files loaded.
Killing of the .CLW solves the problem for an one session. After I restart project, it again doesn't work, need delete .CLW again.
Now, I cannot add a menu item. Currently there are about 1000 items in the menu. I have a bad suspicion that may be there is a LIMIT for the wizard when it adds a menu item?
Please, any ideas how to add items?
|
|
|
|
|
Member 708172 wrote: Currently there are about 1000 items in the menu. Seriously? How do you expect anyone to navigate such a maze? You should rethink your design.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
There's really no reason why you should have that many items in a menu. You're at a point where no person would want to navigate through that.
|
|
|
|
|
Member 708172 wrote: Currently there are about 1000 items in the menu.
VS, every user of your program, the universe and life itslef probably hates you for that. 
|
|
|
|
|
I have no questions about design. I have questions about fight the wizard in VC6.0
-------------------------------------
PS. This project isn't bubbleshooter or a text processor. Therefore its menu doesn't consist of Help->About only.
This project operates with cars, that are splitted by models. Do you know how many car models in the world?
No, you don't, but somehow you are sure that our users are not happy to navigate through this menu.
Who from you solved a problem to combine over 1000 cars in an one project? Nobody. But all seems that they are guru in this question... OK, I'm listening you, make your suggestions...
|
|
|
|
|
Well, don't put every single model into the menu but just the highest hierarchy level. Open a sub dialog with a ComboBox (or several if there are more sub levels) and add only the items apllicable for the current parent level. This should cut down your memory usage.
|
|
|
|
|
A suggestion: Rethink your design.
I (and probably all others here) would use a database and provide filter options to query matching recordsets and show the results as list from where additional actions can be executed. Doing so allows you to update the database with new data without changing a single line of code for your application and you will not run into any limits.
A probable solution is using dynamically item creation rather than using resources. When doing so, you may realize that using a database is a good idea. Finally, switching from menu selections to lists with filters may also come into mind.
|
|
|
|
|
Member 708172 wrote: I have no questions about design. I have questions about fight the wizard in VC6.0 If you design it correctly you will not have to fight the wizard. This is not a good way to deal with large numbers of options, as others have pointed out. You should consider the use of dialogs with lists which will allow you to alter things dynamically rather than having to rebuild your entire program every time a minor change in your item set occurs.
Member 708172 wrote: Who from you solved a problem to combine over 1000 cars in an one project? Nobody. You have no idea what problems some of the contributors here have solved; many have been working very successfully in IT development for years. That is why you should listen to their advice. Of course you are free to ignore it and stick with your own design, but don't be surprised if you run into even more problems.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Are you really using menus (i.e. CMenu, ... ) ??? or are you talking about something else ?
If using menus, split the menus into sub menus of companies and models; that will probably help.
IMO, menus are not designed to do this kind of interaction.
My suggestion would be to have (at least) 2 list box side-by-side, first one on the left would be the car manufacturer, and the one on the right would be the car models which is dependent on the manufacturer.
Scenario :
- first list is filled with car manufacturer; second list is empty.
- user selects car manufacturer; second list is filled with car models.
- user selects car model on the second list.
You can also add some more UI to select the car manufacture year.
You can also add behaviour so that the user could start type the car manufacturer and/or model to automatically scroll to the appropriate item in the list.
...
Good luck.
Nihil obstat
|
|
|
|