Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your feedback on a survey! Each completed response supports our community and gives you a chance to win a $25 Amazon gift card!


Eliad Moshe

Member Since 01 Jan 2010
Offline Last Active Dec 02 2014 08:14 AM

#5134124 win32 list box doesn't add strings

Posted by Eliad Moshe on 24 February 2014 - 10:13 AM

 

Maybe your project by default is set to MultiByte instead of unicode, try SendDlgItemMessageW.

 

If SendDlgItemMessageA was being called, the code wouldn't compile with the L prefix on the test string.

 

See the function def at MSDN : http://msdn.microsoft.com/en-us/library/windows/desktop/ms645515%28v=vs.85%29.aspx
You need to cast the last parameter to LPARAM.
 




#5131868 Accessing STDOUT of a child process

Posted by Eliad Moshe on 16 February 2014 - 06:39 PM

Hi guys,

I am trying to access the STDOUT of a child console application,
At first I tried to use Anonymous Pipes with Info from:

http://msdn.microsoft.com/en-us/library/ms682499%28VS.85%29.aspx
http://www.codeproject.com/Articles/5531/Redirecting-an-arbitrary-Console-s-Input-Output

then, I found this page at Microsoft Support : http://support.microsoft.com/kb/190351 that states:

"Note Child processes that use such C run-time functions as printf() and fprintf() can behave poorly when redirected. The C run-time functions maintain separate IO buffers. When redirected, these buffers might not be flushed immediately after each IO call. As a result, the output to the redirection pipe of a printf() call or the input from a getch() call is not flushed immediately and delays, sometimes-infinite delays occur. This problem is avoided if the child process flushes the IO buffers after each call to a C run-time IO function. Only the child process can flush its C run-time IO buffers. A process can flush its C run-time IO buffers by calling the fflush() function."

Any Idea what can I do in order to  solve this besides modifying the source?
 




#5104338 How can I gain a deeper understanding of C/C++?

Posted by Eliad Moshe on 25 October 2013 - 07:34 AM

.




#5104272 How can I gain a deeper understanding of C/C++?

Posted by Eliad Moshe on 25 October 2013 - 01:10 AM

.




#5088774 optimization and power consumption rate

Posted by Eliad Moshe on 24 August 2013 - 08:11 PM

"Energy Efficient Software Development" at "Intel® Developer Zone" :

http://software.intel.com/en-us/energy-efficient-software




#5056029 Programming a simulation of a moving hand

Posted by Eliad Moshe on 23 April 2013 - 07:33 AM

Does such application satisfies your needs?

 




#5055615 Programming a simulation of a moving hand

Posted by Eliad Moshe on 21 April 2013 - 05:23 PM

"The goal is to display a virtual hand on the screen which is movable via a motion tracking device."

 

0. What kind of sensor are you using?

1. Does your Hand's mesh needs to operate in a 2D surface or a 3D space?

2. How many degrees of freedom do you have in the system and of what type?




#5049814 Visual studio like app on MFC

Posted by Eliad Moshe on 03 April 2013 - 09:05 PM

If you use something already existing for a GUI then sooner or later (Usually 48 hours) you will get stuck with something it can't do. I would just make my own GUI framework based on a frame/panel. A tree structure can store the recursive behaviour for how it resize everything according to the window. For each panel, calculate the dimensions of each child panel and tell them to resize their children. When dragging a panel, show 5 icons on each other panel where it can be released. Move it to be a new child to that panel with it's location given by the icon that you moved it to.

 

http://my.opera.com/adelamro/blog/win32-docking-system




#5047025 [Question] Creating a windows application in c++?

Posted by Eliad Moshe on 26 March 2013 - 02:57 PM

One more thing that you should consider when choosing your GUI platform is the license  of each GUI library and/or API .
 
Qt for example, has a dual license:
0. A paid-comercial license provided by digia for pure proprietary software.
1. A LGPL license that forces the folowing restrictions (for commercial applications):
You must->
0. Expose the interfaces for the free software components to end users.
1. Povide your app's object files.
2. Encapsulate the free software components inside a dynamic link library.
(If and only if you distribute your software to others)
 
GTK+ which is really brilliant, has a LGPL license as well.
 
WxWidgets has it's own license that lets you release your proprietary software without the need to expose anything as long as you disterbute your app in a binary form.
 
A word in regards to the win32 API:
 
The windows API gives you, by far, more power and flexibility than any other API listed (in the cost of implementing a huge set of things by yourself), 
for Windows operating systems.
It is true that it has a quite steep learning curve, although it is brilliantly documented, rich, fast and beautiful !
Also, it is required if you attempt to create a pure DirectX application. 
+ you can release your GUI components without any restrictions.



#5043480 Programming with Kinect?

Posted by Eliad Moshe on 15 March 2013 - 01:17 PM

If crossplatform is not an issue, I am highly suggest you to use the official Kinect for Windows SDK.

The documentation is excellent,  great samples, drivers are stable and the API is in the same familier look&feel like most of Microsoft's user-mode technologies.

Also, the SDK exposes the Avatar Kinect API which allows you to track faces as well !

 

Personally, I tried OpenNI & NITE months before msr released their first beta and really disliked their API & set-up interfaces.




#4972177 UX & Menu Bars

Posted by Eliad Moshe on 22 August 2012 - 06:34 AM

I am working on an IDE for a domain specific language.

What is the best practice regarding the design of a menu bar?
Should I embed common captions that users familiar with, or rather more domain specific?

For example:

Domain Specific:
Project->New->{Game, Module, Script}

Instead of:

Common:
File->New-> {Project, File}


Which leads to a better user experience in your opinion?


#4971368 Child window dividers

Posted by Eliad Moshe on 20 August 2012 - 01:39 AM

Which GUI API/Framework are you using?


#4969793 Anyone want to help me choose a framework for some tools I want to write [Win...

Posted by Eliad Moshe on 15 August 2012 - 04:47 AM

The win32 API will give you the freedom you seek.


#4861937 Graph theory intro?

Posted by Eliad Moshe on 15 September 2011 - 01:11 AM

Check out this link .


PARTNERS