715 Topics

Member Avatar for
Member Avatar for dilbert_here00

Hello All, I have a question on win32gui, how do I get the window ID corresponding to a window handle. I am able to get the window handle, class, caption using functions like "win32gui.GetWindowText", "win32gui.GetClassName" etc, but I can't find a function that returns the window ID for a particular …

0
114
Member Avatar for jeffcogswell

I've been using jQuery for a few years now, and the more I use it, the more I like and appreciate it. It seems like I'm always finding new ways to use it, and usually those new techniques result in me writing less code and ultimately being more productive. On …

Member Avatar for twiss
2
584
Member Avatar for billgateswannab

ok guys. Im new here so please dont squash me like a bug. Im new to assembly as well. I even bought an assembly book recently ive been studying. My question is... Is it possible to write assembly that doesnt depend on api's, etc. Of other operating systems. Everything ive …

Member Avatar for billgateswannab
0
237
Member Avatar for arshadshaikh

I have downloaded files from [url]http://sergey89.ru/files/ffmpeg-php-win32-all.zip[/url]. I add four files in c:\\windows\system32\ folder these files are : avcodec-51.dll, avformat-51.dll, avutil-49.dll and pthreadGC2.dll. And one file php_ffmpeg.dll i add in \xampp\php\ext\ folder. After restarting system and server i get following error: --------------------------- Warning --------------------------- PHP Startup: ffmpeg: Unable to initialize module …

Member Avatar for twiss
0
907
Member Avatar for v_janssens

Hi, I have a C++ program (built in Visual Studio 2010) and want to add a user interface to package it up. I've been reading around about windows forms and the win32 API, and found loads of tutorials showing how to create interfaces but I can't find any advice on …

Member Avatar for NicAx64
0
874
Member Avatar for Khoanyneosr

So, I've bought two books, one on DirectX 10 and one on OpenGL. The first one i bought was the directX 10 book, and NONE of the code compiled because of some LPCSTR error. So stupid me thinking it was another thing that microsoft goofed on i bought a book …

Member Avatar for pseudorandom21
0
365
Member Avatar for Khoanyneosr

[CODE]#ifdef _WIN32 #include <windows.h> #endif #include <iostream> #include <vector> #include <string> #include <SDL/SDL.h> #include <GL/gl.h> #include <GL/glu.h> using std::vector; void error(const std::string& s) { #ifdef _WIN32 MessageBox(NULL, s.c_str(), "An error occurred", MB_ICONINFORMATION | MB_OK); #else std::cerr << s << std::endl; #endif } [/CODE] That's my problem... [CODE]1>------ Build started: Project: …

Member Avatar for Khoanyneosr
0
202
Member Avatar for CodyOebel

OK im having a problem which I feel should be super easy within windows API gui programming, but I dont know how to go about it the right way. On a givin HWND when a single mouse click is qued and my program recognizes it and my windproc processes it …

Member Avatar for template<>
0
148
Member Avatar for pcgamer2008

Hello World !!! I am having problem in my project regarding mouse click within a particulr area on GL surface screen...when I click on that particular area..mouse click generates windows coordinate like (200,349). It's hard to sense the mouse click in that area on GL surface screen....so how can I …

Member Avatar for mike_2000_17
0
122
Member Avatar for cwarn23

Hi, I am in need of a python ocr script that can convert images into text and for the script to work on BOTH windows and centos. All the scripts I have found seem to not be compatible with linux/centos or require an api to another server and I do …

Member Avatar for cwarn23
0
167
Member Avatar for Khoanyneosr

So, I've been learning DirectX10 and have had alot of questions... I'm sure i've frustrated about all the people that are willing to help me with my DirectX problems (Sorry about that) but now i have a new problem. I have some source code that i downloaded from a site …

Member Avatar for LevyDee
0
264
Member Avatar for CodyOebel

Ok ... I have a handle to a game window in which inside this game my little character picks up items off the ground and drops them onto himself. It is done with drag and drop. I left click down drag the item to the character and release the leftclick …

Member Avatar for CodyOebel
0
3K
Member Avatar for darkbreaker

I am developing a network chat application, I am using Winapi, my main window is a dialog (created from a .rc file). I am looking into a way of doing an text box where my outuput text can be like this: [QUOTE] [COLOR="Green"]Welcome to ##### chat server![/COLOR] [COLOR="Red"]Person1[/COLOR] says: Hi …

Member Avatar for darkbreaker
0
277
Member Avatar for ak24

Hello... I'm learning win32 api programming, and I can't figure out how the vsprintf (va_list, va_start, va_end) function works in the following code: [CODE]/*----------------------------------------------------- SCRNSIZE.C -- Displays screen size in a message box (c) Charles Petzold, 1998 -----------------------------------------------------*/ #include <windows.h> #include <tchar.h> #include <stdio.h> int CDECL MessageBoxPrintf (TCHAR * szCaption, …

Member Avatar for ak24
0
276
Member Avatar for Labdabeta

I am having trouble with a program that I am writing. I cannot seem to be able to destroy a window. I know the DestroyWindow function but it only works on windows that my application owns. Is there any way to destroy a window that is not owned by my …

Member Avatar for Labdabeta
0
126
Member Avatar for triumphost

Hi All, Im new to threading and forms and really bad at API. Jonsca pointed me to Backgroundworker because my original problem was to constantly check if a window is open. If it is open, terminate my program. I failed at that so I tried Hotkeys. The problem is: My …

Member Avatar for jonsca
0
235
Member Avatar for Khoanyneosr

[code] 1>------ Build started: Project: DirectXtutrials, Configuration: Debug Win32 ------ 1>Build started 3/24/2011 5:24:05 PM. 1>InitializeBuildStatus: 1> Touching "Debug\DirectXtutrials.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>ManifestResourceCompile: 1> All outputs are up-to-date. 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup 1>C:\Users\Konnor\Documents\Visual Studio 2010\Projects\DirectXtutrials\Debug\DirectXtutrials.exe : fatal error LNK1120: 1 unresolved externals …

0
63
Member Avatar for lima01

Hi, I am starting to make programs with GUI, so with buttons, frames etc, and some of them will work via internet, like multyplayer card game or something like that. So during my search, I ran onto few choices, Qt, Win32 api, wxWidget and by most forums the Qt is …

Member Avatar for gerard4143
0
192
Member Avatar for kirenemook12

hello everyone. i am making a program which has multiple windows. how do I program that when one window pops-up, the other closes? i am using Microsoft visual studio 2010, in a Win32 application. i am not using a windows form.

Member Avatar for kirenemook12
0
161
Member Avatar for kirenemook12

hello every one i am making a program what requires that the user types in some text in a textbox. the problem is, how do i get that text from the textbox into the std::string (or a other kind of string)? i don't know how to do that in Win32, …

Member Avatar for kirenemook12
0
815
Member Avatar for lochnessmonster

i am currently using the writefile() windows api function in my program, i want to store the follow in 1 buffer but i'm unsure on how to do this exactly [CODE] "===================================" '\n' "Date: " localTime->tm_mon "/" localTime->tm_mday "/" localTime->tm_year '\n' "Time: " localTime->tm_hour ":" localTime->tm_min "." localTime->tm_sec '\n' "===================================" …

Member Avatar for maybnxtseasn
0
2K
Member Avatar for lochnessmonster

I was wanting to try a neat little project while i was bored at work and came up with a CodeInjection class. I understand this class is VERY POORLY DESIGNED. My question is how can i fix this?? what can i do differently to make this class not so tightly …

Member Avatar for mike_2000_17
0
107
Member Avatar for chintan_1671

I have created a C++ Win32 Dll. I have created a .def File which contains the names of the functions in Win32.Dll As: 1Win32.cpp includes a class library file named gs.tlb It has functions named sum, strupper 1win32.def as LIBRARY "1WIN32" EXPORTS sum strupper When i try to register the …

Member Avatar for chintan_1671
0
268
Member Avatar for leemyers

Hi i have a php script that create a new user account on my online backup server via a api, when i open in i.e or firefox i get this error message Parse error: syntax error, unexpected $end in /home/public_html/123-backup.com/test.php on line 297 I' am not sure what is missing …

Member Avatar for kmonroe
0
153
Member Avatar for katokato

im new to this c++ thing and windows api thing, and i got most of this code from a tutorial but i modified it alot. how do i retrieve a handle to a dialog box so i can put my menu inside it? (when i put the code for the …

Member Avatar for katokato
0
1K
Member Avatar for chintan_1671

I have a managed class library developed in C#. Now i need to create a win 32 dll wrapper around it. So in my Win 32 DLL i need to import that class library and call the starting point functions from it. I am new on this. I was able …

Member Avatar for chintan_1671
0
267
Member Avatar for spoonlicker

I have no idea how to do it and MSDN.com doesn't give any straightforward explanation on how to. Also, learning functions and such don't really help because I don't know how to use any specific functions regarding such a task and I'm basically clueless. So how could I show an …

Member Avatar for hag++
-1
87
Member Avatar for spoonlicker

[B]I'm extremely confused using external graphics sources such as OpenGL or DirectX or even Windows API to do such simple tasks. I want to be able to take a step forward and learn how to draw a bitmap or such on to a window. Thing is I have not a …

Member Avatar for spoonlicker
0
106
Member Avatar for spoonlicker

[B]To create a GUI yourself from scratch and attach it to the device context of another API/GUI like the Windows one or such? Can it be done? That's all I want to know. :P[/B]

-1
71
Member Avatar for stevetaylor15

Hi guys, I want to run the following in a c# loop but I just don't know how to pass a multi value for a parameter with a comma. The actual cmdlet would be below and does work in exchange powershell: Set-CalendarProcessing –ResourceDelegates [email]jonDoe@test.com,johnnydoe@test.com[/email] -identity [email]testroom@test.com[/email] –AutomateProcessing AutoUpdate I know …

Member Avatar for paperless
0
300
Member Avatar for stevetaylor15

hi guys, i'm running a recordset read as below and within that running commands against a 2010 exchange server. i wanted to know what you thnk the fastest method there is of doing this?Is the best mehod to put the connection to the exchange server outside the rdr.read, and then …

Member Avatar for paperless
0
247
Member Avatar for kaharas

Hi, I wrote this little program, that load a flash application, and tries to hook the recv calls made from it. The problem is, The hook works for HTTP request ( xml domain policy file and so on), but completely misses the xmlsocket packets. I'm sure the api called is …

0
69
Member Avatar for shawnhanna

Hello, I am new to C++ windows programming and have only taken 1 class in c++ in my life (I have experience with other languages and OOP). I'm using Visual C++ 2008. and my project is created by the wizard for a Windows Forms Application. (I'm guessing this means CLI …

Member Avatar for shawnhanna
0
700
Member Avatar for Frederick2

Here is the full code relating to my performance problem I’m having with my operator+= which I described in this adjacent thread…. [url]http://www.daniweb.com/forums/thread340734.html[/url] As a quick review, I’m finding that the operator+= function in the Standard C++ Library’s String Class, i.e., <string>, is performing almost impossibly fast compared to the …

Member Avatar for Frederick2
0
556
Member Avatar for n00b3

Hello, I am writing a c++ program for windows using the API. My program needs to be able to get some text from the clipboard, import it to the program's scope as a string, and do work on the string. [what I have tried] [code] cout << GetClipboardData(CF_TEXT) << endl; …

Member Avatar for Panda_007
0
5K
Member Avatar for DarkLightning7

I cant seem to find the problem with this program I am building as a learning exercise. I am getting errors referenced to extremely simple pieces of code. In the output the first thing that should be printed is the random double number that the program selects then it should …

Member Avatar for DarkLightning7
0
275
Member Avatar for tomtetlaw

I'm using VC++ 2008 with Window XP Professional. I'm trying to make a custom assert function, which presents a dialog box asking what the user wants to do about the assert. When I call DialogBox, it shows my dialog properly, but every subsequent call to that function appears to do …

0
70
Member Avatar for Masood_786

Hi All, I have been assigned a task to read other application data installed in our client's computer running windows 2000 and then send it to serial port. The application has a tab control in the main dialog that contains two sub dialogs, one contains a combo box, selecting each …

0
65
Member Avatar for Nassarofficial

Hello, i have to split my code into parts so i split a dragimage demo from the wx demo package which is this code: [ICODE] import wx import images #---------------------------------------------------------------------- class DragShape: def __init__(self, bmp): self.bmp = bmp self.pos = (0,0) self.shown = True self.text = None self.fullscreen = False …

Member Avatar for loveerl
0
255
Member Avatar for BChicago

Hi, I'm trying to add a drop down combo box for user selection in the main window of my application. The program reads USERS.txt, loads each line into a const char*[] and (hopefully) adds them to the combo box. The problem is my program displays Chinese characters instead of the …

Member Avatar for Ancient Dragon
0
537
Member Avatar for erniestl

I have windows 7 on my pc with 2 gig memory, 350 gig harddrive and 2.67 GHZ CPU. I run slimbrowser most of the time. This problems does it in IE,Firefox and slimbrowser. What ha}ppens is if I open like 15 websites aat once will close the browser down , …

Member Avatar for dvdreplication
0
413
Member Avatar for VanessaRyan

[ATTACH=left]17531[/ATTACH][URL="http://www.5o9inc.com/products/download/"]5o9® EZMobile[/URL], to be released on October 11, 2010 is a new mobile context app for all Web apps that utilize the browser to deliver real-time context (mobile user, device and location data) to the Web server for use in any Web application. This new software enables developers to know …

Member Avatar for mactilden
1
464
Member Avatar for hiddepolen

Hi all! I have a very strange problem. I am making a Win32 program, using Visual C++ professional 2010. Everything works exactly as it should, until I want a MessageBox to appear. It appears, but I cant click any buttons. I also can't access my main API, so I can't …

Member Avatar for hiddepolen
0
1K
Member Avatar for daudiam

I can't understand the following statement [QUOTE]The Hotspot VM now implements Thread.yield() using the Windows SwitchToThread() API call. This call makes the current thread give up its current timeslice, but not its entire quantum.[/QUOTE] given at [URL="http://www.javamex.com/tutorials/threads/yield.shtml"]http://www.javamex.com/tutorials/threads/yield.shtml[/URL] I understand that after a thread yields, other threads get a chance to …

Member Avatar for ~s.o.s~
0
694
Member Avatar for Yuichi

Hi all, I am new to ffmpeg and I tried using api-example.c to decode wma files. However when I run the program, it gave me an error saying "frame_len overflow". Does anyone know how to fix this error? Here is my code: [CODE]extern "C" { #include <avcodec.h> #include "../libavcodec/avcodec.h" #include …

0
151
Member Avatar for Diamonddrake

A project I am working needed a question style message box, but I wanted that contemporary look of Vista and Seven. I set out to see how it was accomplished, turns out there are some special APIs that exist in Vista and Seven that don't exist in XP that accomplish …

2
224
Member Avatar for lochnessmonster

How would i read a files bytes into a buffer in my program to compare them with another string a bytes? what methods are possible that i have available using c++ standard and/or the windows api -thx

Member Avatar for jonsca
0
84
Member Avatar for LianaN

Hi! I'm new to Android OS and all this stuff. So, I tried to develop a HelloAndroid api as it is described [URL="http://developer.android.com/resources/tutorials/hello-world.html"]here[/URL]. However, when I try to Run the HelloAndroid, the error message occurs. It is also strange that by selecting Run->Run, the "Android Application" option does not appear …

Member Avatar for MarkitoMagic
0
114
Member Avatar for NettSite

I am trying to get the win32service PHP extension working. I have installed PHP 5.3.4 on my Windows XP SP3 box, and downloaded the php_32winservice.dll file and listed it in my php.ini file as instructed in the manual. However, there is obviously a version mismatch between the dll and the …

Member Avatar for NettSite
0
167
Member Avatar for tanco

Hello, I'd like to set multiple InputScopes to one text box in a Windows Form with using C#. This application will be used in TabletPC. I found SetInputScopes API. But I'm not good at C#, so I don't have any idea how to program it in C#. Could anyone please …

Member Avatar for tanco
0
322

The End.