Open File Dialog Windows API [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
How do you show the Open File Dialog on Windows using just straight C++ and the Windows API?
I'm trying to load an image to display on the screen.

You want the common file dialog API, specifically GetOpenFileName - http://msdn.microsoft.com/en-us/library/windows/desktop/ms646927(v=vs.85).aspx

Related

How to find process by windows title and close it whenever open [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to close process by windows title whenever that process open. How i do it?
On Windows, use FindWindow() to locate a window with the desired title, and if found then use PostMessage() to post a WM_QUIT message to it. If the window is still running after a period of time, then you might be able to brute force kill it, depending on permissions, by using GetWindowThreadProcessId(), OpenProcess() and TerminateProcess().

How to get started with Kinect Development [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I'm new to Kinect Development
I've installed VS2010, Kinect SDK & .NET4
I want to know how to get image frames from the Kinect sensor in C++. Any thoughts ?
UPDATE:
Here's an updated version for Kinect V2 from July 2014.
Check out this serie on channel9 : http://channel9.msdn.com/Series/KinectSDKQuickstarts

How to write text into window? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Parent form handle hwnd is existed. Now I want to populate it with edit controls into which output-text is written. I am not familiar with WIN32 API, Thanks for showing me some code examples. Thank you!~
http://msdn.microsoft.com/en-us/library/ms633546(VS.85).aspx
If you want to set text using chars then you can use SetWindowTextA so you don't need to bother with multibyte to/from wide characters.
I suggest the Programming Windows book by Charles Petzold.
You say hwnd is your parent then you could create the edit controls with default text like:
HWND hedit=CreateWindow(TEXT("EDIT"),TEXT("Default window text"),WS_CHILD | WS_VISIBLE, 0,0,400,300,hwnd,0,0,0);
Read up on the docs for CreateWindow at http://msdn.microsoft.com/en-us/library/ms632679(v=vs.85).aspx
Use CreateWindow to create Edit controls and do whatever you want with them.
Use google, etc or MSDN search before asking something.

using firebreath created npapi for chrome can i call the plugin methods from the extensions and not from html loaded page [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I've built a simple NPAPI plugin, and registered it with Chrome. This all works; javascript in the browser is able to interact with plugin.
But i need to be able to call methods of my plugin from Chrome extensions.
Can it be done?
Yes, you can. Extensions are implemented in JS and HTML, so you can embed and call a plugin from an extension just as you would from a web page.

How to find USB driver letter? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I own one of those old U3 Cruzor USB's, and I want to create an application running on the image/iso/cd part (with a custom flash using "universal customizer") finding the other driver letter, reading an ini (.inf) file and starting an application based on what it finds in that file.
Not sure what language to create it in. But I would like it to be as small, fast and compatible as possible (windows xp, vista, 7. and not requiring .NET framework).
How does I find the driver letters for the USB?
This can be achieved using the DriveInfo class: http://msdn.microsoft.com/en-us/library/abt1306t.aspx
To get the volume label of the drive do the following.
DriveInfo[] allDrives = DriveInfo.GetDrives();
foreach (DriveInfo d in allDrives)
{
if ((d.IsReady == true) && (d.DriveType == DriveType.Removable))
{
Console.WriteLine(d.VolumeLabel);
}
}
edit: just saw you dont want to use .NET...