3,417 Topics

Member Avatar for
Member Avatar for LevyDee

So I finally decided to take on some Windows Programming, and everything is going fine, except this: Edit: using this tutorial [url]http://bobobobo.wordpress.com/2008/01/31/how-to-create-a-basic-window-in-c/[/url] [code] #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASS myWindow; myWindow.cbClsExtra = 0; myWindow.cbWndExtra = 0; myWindow.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); myWindow.hCursor = LoadCursor(NULL, …

Member Avatar for nithy.sweety
0
521
Member Avatar for d3mos

I'm a programming noobie, been programming for only a couple months. The other day I had the idea to write a small application where it would minimize Skype automatically after a call was terminated or over. I have no experience using API so I've been doing my research on the …

Member Avatar for d3mos
0
216
Member Avatar for pato wlmc
Member Avatar for moobaa

Hi dani-webbers... I am endevouring to build an application that drags in data from multiple sources, and compiles this into a single page in which users can then click through to the item on the desired site. Most of the sites I want to include provide an API, but one …

Member Avatar for diafol
0
106
Member Avatar for VIeditorlover

First of all - no [URL="http://msdn.microsoft.com/en-us/library/ms996492.aspx"]http://msdn.microsoft.com/en-us/library/ms996492.aspx[/URL] or derivative work - I don't want hear os class Rtf...Ex anymore! Thank you. What I am looking for is any (including api calls, com calls etc.) way how to print rtf document from dist on default printer programmatically. Thank you for any reasonable …

Member Avatar for kvprajapati
0
101
Member Avatar for strmstn

Hello. I am quite keen with the win32 api but am tired of the standard windows visual styles (XP/Vista/7) and am wondering how to create my own. Have googled but not found any information, just point me in the right direction. Thank you very much.

Member Avatar for tetron
0
146
Member Avatar for Frederick2

This is one mean function! I've tried everything I can think of. I registered a type library with LoadTypeLibEx() which is a really easy function to use. I mistakingly thought UnregisterTypeLib() would be routine. Its most decidedly not! The error I keep getting with FormatMessage() is... Error accessing the OLE …

Member Avatar for Frederick2
0
514
Member Avatar for abhay_tanu

Hi I want to return a value from shell script to java code? That value may be a file name or any string. Is it possible? If yes, then how to do it? Can I get any steps or API's for that. Thanks Abhay

Member Avatar for abhay_tanu
0
394
Member Avatar for amby

Hi, i just start learning jquery and want to see some exapmle of jquery core API and ajax. can somebody please give me some code example so that it can be easy for me to understand. Thanks in advance. amby

Member Avatar for Airshow
0
75
Member Avatar for Bhoot

I am dealing with multiple monitors in which i required to use EnumDisplayDevices() API. However, the linker gives me following error log (i am using VC++ 6.0) : [CODE]Linking... SourceCode.obj : error LNK2001: unresolved external symbol __imp__EnumDisplayDevicesA@16 Debug/AllianceProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/CODE] I tried …

Member Avatar for pdtx
0
340
Member Avatar for Tigran

Hello, I've been trying to get into game programming. So I learnt a simple 2d api, Direct2D because it has great documentation on msdn and started planning/programming my first game: a tetris clone. All went well, and I also added sound and such, but now I want to add a …

Member Avatar for Tigran
0
407
Member Avatar for GDICommander

Hello, everyone! I'm using the Win32 API PeekMessage function to retrieve key stroke events. I have a problem: suppose that someone holds the A button. PeekMessage will return messages for the A press event. Now, while A is pressed, someone holds B. PeekMessage will return only the B press event …

Member Avatar for Taurusk
0
129
Member Avatar for harshareddy75

Hi guys, I have been using winhttp to download pages (openrequest, sendrequest etc.) However I dont know how to download images from these webpages at the same time using winhttp. Is it possible? If it is, could please direct me to the api or post an example? Thanks Harsha Reddy

0
42
Member Avatar for Syphilis

What's Up? OK, I'm editing another file, And my new problem is that every so often the software creates a popup menu above the system tray. [url]http://i.imagehost.org/0117/Screenshot_6.png[/url] -img And I need to edit it, Now the file isn't mine and I don't have the source to it, I probably have …

0
76
Member Avatar for tanya9x

Hello everyone, I have to do programming to make a small, straightforward game operating over a LAN network. I think I should use Visual C++ and MFC libraries from Microsoft, because it's easy to learn and use. Dealing with some network programming concepts such as TCP, UDP and some Socket …

Member Avatar for nats01282
0
281
Member Avatar for team_tip

a requirement was sent to me below: API should be in the form of static library. company xxx will link the library into a third party application to prevent any possible exposure of the code(dll) could they mean an import library? An import library is a library that automates the …

Member Avatar for Ancient Dragon
0
119
Member Avatar for Aamit

Hi, When in google you type time or date ... it display answer - correct time means get your time zone and converted to correct time... e.g. suppose you are in india .. it automatically detect time zone convert it added +5.30 and display result. same as whether you are …

Member Avatar for mialye
0
165
Member Avatar for hkdani

Trying to raise an event in an ActiveX control from a module (.bas file). Been trying to create a timer control that will go past the 1 minute limit of the vb6 timer.ocx. The Windows API SetTimer will do this. But wanted to create an Active X timer control that …

Member Avatar for vb5prgrmr
0
376
Member Avatar for aravinda reddy

I have implemented Google search in my web application. It is asking for license key.... where i should sign up... how to get license key? Plz its very urgent Plz do reply

Member Avatar for aravinda reddy
0
83
Member Avatar for clutchkiller

Do people who use these API's even know how to program? Ive never used XNA before, but it seems like the average Joe can download it, copy past from some tutorials and make some triple A game title. It kinda pisses me off. If anyone here begs to differ, let …

Member Avatar for jwenting
-3
141
Member Avatar for Syphilis

What's Up? OK, So this has been driving me crazy over the last few weeks, All I need to do is edit a file so that it runs without showing any windows (I.E Runs in background) The window is created by means of Delphi, (So WS_EX_TOOLWINDOW Won't work) The only …

Member Avatar for MosaicFuneral
0
160
Member Avatar for Icebone1000

Hi, Im trying to figure out(again) the best(fastest) way to handle file management..Im using Win32 api, so I always try to use the api routines(instead of the c++ ones), dont know if this is better, but I just feel it is better in this way.. ( On "windows internals" book, …

Member Avatar for Ancient Dragon
0
257
Member Avatar for kashifkhan12
Member Avatar for whiteyoh
0
30
Member Avatar for drewpark88

Hey Everyone, I am getting an error with a PHP script made using the Authorize.net AIM (Advanced Integration Method) API for my donation form. I have gone over the code dozens of times and still do not know why it is not working. Everything works except the most important part...it …

Member Avatar for drewpark88
0
302
Member Avatar for fawkman

Hey Guys I have been playing around with the google calendar API using the Zend Framework- Gdata library. I have had mild success in using this and have stumbled accross an issue I beleive is to do with passing variables through a URL. Basically, I can create several calendars and …

0
87
Member Avatar for VilePlecenta

Goal: Get USB drive letter upon insertion. Done so far: Detection of drive. ------------------------------------------------------------- Im using the method of RegisterDeviceNotification() [CODE]WM_DEVICECHANGE // Received message | DBT_DEVICEARRIVAL // Received Message | DEV_BROADCAST_HDR // Pointer from lParam | PDEV_BROADCAST_VOLUME //Pointer from DEV_BROADCAST_HDR Pointer [/CODE] When getting the index drive letter from dbcv_unitmask. …

Member Avatar for VilePlecenta
0
206
Member Avatar for abhish2005

HI my project involves reverse geocoding and therfore i ve embedded the google maps api in my web site and am using their geocoder to get location names from coordinates. The geocoder and its functions are written in php. Now the problem is that i need to store the values …

Member Avatar for diafol
-2
119
Member Avatar for Emerald09

My client plays short ad videos on his computer through windows media player. He needs a software which can keep a track of the ads, he played for each day. He wants complete logs for the adds played.For example: If an add is played twice a day, for ten minutes …

Member Avatar for Emerald09
0
106
Member Avatar for xfrolox

To Read and Write [CODE]#Region "API Calls" Private Declare Unicode Function WritePrivateProfileString Lib "kernel32" _ Alias "WritePrivateProfileStringW" (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, ByVal lpString As String, _ ByVal lpFileName As String) As Int32 Private Declare Unicode Function GetPrivateProfileString Lib "kernel32" _ Alias "GetPrivateProfileStringW" (ByVal lpApplicationName As …

0
67
Member Avatar for xfrolox

Well I'm trying to make a tool for a game for learning purposes and i can't figure it out, I have Checkbox1 and a button The button saves the ini with the checkbox1.CheckState correctly and when i open it the Checkbox1.CheckState is checked so it works, but when i Delete …

Member Avatar for xfrolox
0
271
Member Avatar for colwem

I'm definitely a noob to rails so sorry if this is trivial. I have tables with associations on them. The associations are supposed to add methods to my models like model.others and model.others= and so on but when I try to use them I get errors like the following. NoMethodError: …

Member Avatar for colwem
0
168
Member Avatar for jamesonh20

Hello I am trying to underline --> 1 5 6 only the 1 2 2 2 only the middle 2 1 6 4 only the 4 I have imported the java.awt.* but im not sure how to write the code, the java api is a little confusing. [CODE]import java.awt.*; public …

0
64
Member Avatar for iamvish

Hi ,, I am using [B]GetProcessMemoryInfo[/B] windows api to get current memory usage by process.. It takes [B]PPROCESS_MEMORY_COUNTERS[/B] pointer as argument. I got value values in [B]PPROCESS_MEMORY_COUNTERS[/B] structure member after calling this api.. but what is the actual memory consumed by my process........ Is it [B]Working set size[/B] or [B]Page …

Member Avatar for tetron
0
173
Member Avatar for team_ferrari22

Hi All, Does anybody know how to [B]defragment windows registry[/B]. We googled and found several free tools doing the same.But no tool is having open source. One tool is there - '[U]UltraDefrag[/U]' which is open source tool written in 'C' for file defragmentation. Please provide help in searching open source/ …

Member Avatar for team_ferrari22
0
103
Member Avatar for iamvish

Hi all, How to find free physical memory... I am using new operator to allocate memory.. I tried GlobalMemoryStatus (windows api) to analyse the current free memory. new is giving exception still GlobalMemoryStatus shows sufficient free memory.. I am using visual studio 2005 for development. and I want to avoid …

Member Avatar for WaltP
0
86
Member Avatar for electrogear

I'm struggling. I'm trying to make a website using the google weather API. Here's where I'm at: 1) I've got the PHP code working, and it gets the current temperature & images showing the forecast for the next 4 days. Simple enough 2) I decided I wanted to have a …

Member Avatar for electrogear
0
233
Member Avatar for iamvish

Hi all, How to find the free physical memory... actually i want to avoid the exception from new operator.. i have used the [B]GlobalMemoryStatus[/B] a windows api for this but new is giving exception still more memory available than i am allocating. I am using visual studio 2005 Please help …

Member Avatar for Ancient Dragon
0
169
Member Avatar for harshareddy75

Hi all, Presently I am using winhttp api in c++ to get data from a server. The server can support various compression formats. So presently I want to use winhttp to get the compressed format (eg gzip) and decompress it. Is it possible to decompress the data using winhttp? thanks …

0
62
Member Avatar for lee.j.baxter

Hi, I've worked with the Speech API in the past (VB6), and I'm now looking to use it in my project. For those who haven't read previous posts of mine, I'm developing an AI system in C#/.NET which learns from the internet. Well, I'm going to say I told a …

Member Avatar for kvprajapati
0
207
Member Avatar for pato wlmc

Well, i'm developing a program, ( API ) and i'd like to use a [url=http://www.snap2objects.com/wp-content/uploads/2009/10/6.jpg]non standar font,[/url] for some section of my program. My question is, how can i do this, i mean, i supose i have to install the font on the user pc, but how do i do …

Member Avatar for pato wlmc
0
207
Member Avatar for 6pandn21

Hello everyone, I am trying to understand how a journey planner shows a map of user's journey. My idea is the journey planner will use the Google maps API or some similar service to plot the journey. There must be some type of XML data (JSON in case of google?) …

0
96
Member Avatar for nonexcep

Hi there. I'm learning Java and this is a sample applet in which I try some basic drawing operations. I hit some roadblocks and I'm hoping someone can point me in the right direction. What I want to do here basically is make a rectangle with exactly 10 pixels of …

Member Avatar for gangsta1903
0
108
Member Avatar for sanzilla

Write Your First Application On Win32 ===================================== What is Win32 :-) win32 is an plactform that like J2ME and J2SE means that it have it's memory model and have a architure and have those Applications programming interfaces to call to the operating system . Like the APIS in the java …

Member Avatar for Salem
0
1K
Member Avatar for manutm

Hi everybody, I'm looking for a way of getting a machine-specific string on windows, something like cpu or hard drive or bios serial #. It has to be implemented in c, not c++. I've already browsed the api quite a lot but I'm not sure (and I don't know windows …

Member Avatar for manutm
0
100
Member Avatar for phoenix911

i got a site that is hosted by google, i have to write a program that creates/updates pages on the site... i got the google site API... but i have no idea where to go to.... so far my app logs in to the site, and access my documents, which …

Member Avatar for phoenix911
0
169
Member Avatar for adino2

Well since last month I been working on a project to do a "Speech Recognition System" without the use of any 3rd party help like Speech API. So, this is what I have done in my project. Speech recording, save it to a wave file. Reduce the noise of the …

Member Avatar for adino2
0
136
Member Avatar for cjsowm

[code] package assignment; import java.io.*; public class AddJava{ public static void main() { int num1,num2,sum; BufferedReader stdin=new BufferedReader(new InputStreamReader(System.in)); try { System.out.println("enter first digit"); num1=Integer.parseInt(stdin.readLine()); System.out.println("enter second digit"); num2=Integer.parseInt(stdin.readLine()); sum=num1+num2; System.out.println(sum); } catch(IOException e) { System.out.println("input error"+e); } } } [/code] [code] package assignment; import javax.tools.*; import java.io.*; import java.lang.reflect.Method; …

Member Avatar for BestJewSinceJC
0
193
Member Avatar for c.handy

Proof-of-concept exploit code for a privilege escalation vulnerability affecting all versions of Windows—including Vista—has been posted on a Russian hacker forum, forcing Microsoft to activate its emergency response process. Mike Reavey, operations manager of the Microsoft Security Response Center, confirmed that the company is “closely monitoring” the public posting, which …

Member Avatar for faneyug
0
137
Member Avatar for bayo_84

Hi .. I try to override the XmlWebApplicationsContext and I dont know how to register my subclass. I found in ContextLoader.java in the method determineContextClass the following code: String contextClassame = servletContext.getInitParameter(CONTEXT_CLASS_PARAM); I looks like I could set the class by setting this Parameter but I down know how. In …

Member Avatar for ~s.o.s~
0
129
Member Avatar for pato wlmc

Well first of all, hi, and thanks to all of you guys, cause this may be the first time I start a thread, but not the first time that one of you solve my problems. Anyway. I'm following an internet tutorial about API development, ( [url]http://www.winprog.org/tutorial/menus.html[/url] ) But rigth now …

Member Avatar for mitrmkar
0
714

The End.