Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

Need help in understanding code

Can anyone please explain me, what this below code is doing:int startat = 1; const int MAX_DIGIT = 11; char digits[MAX_DIGIT]; _itoa_s(startat,digits, MAX_DIGIT, 10);

View Article


What is the need to register the "tlb" when the corresponding COM dll is...

Hi alli have a COM project, which has 20  COM dlls.  there is also a sub project with in this , whose only job is to create a "tlb" by using all of the "idl" belonging to the 20 COM dlls. all of COM...

View Article


XPS Printer files locked and unusable in Win 8, 8.1

My application functions perfectly on a wide variety of XP, Vista, 7, Server 2008 R2. It is failing in one area with regard to Windows 8 or 8.1.Something seems to be terribly wrong with the new XPS...

View Article

Visual Studio 2013 Ribbon Editor

I have created a new ribbon image list in Paint.net and have imported it as a new Bitmap resource into my program. It is 500 pixels long x 32 pixels wide. I have discovered however that because it is...

View Article

DWM, Win7, How about MDI ? again ...

Hello again,First thing first : Excuse my English.Second :) : I am a programmer from Romania.Risking to bore some people I must start a new thread here because the old one "DWM, Win7, How about MDI ?"...

View Article


Cannot catch exception, why?

Hi,When writing a program which invoking a third-party library, like this:InvokeThirdpartyFun();it will raise exceptions in Visual C++ output window as follows:First chance exception at 0xxxxxxx:...

View Article

Runtime Error with iTunes

I keep getting the following message:Runtime Error...Microsoft Visual C++ Runtime LibraryProgram C:\Program Files\iTunes\iTunes.exeR6034 An application has made an attempt to load the C runtime library...

View Article

CMFCToolBar images have lines under them after hiding and then showing the...

I have an MFC application with some toolbars in them.  They are created using CMFCToolBar.  They look good when I first start the app but if I hide them and then reshow them the button images have a...

View Article


how to write a websocket server

Are there any Winhttp based APi's for writing a Win32 Websocketserver. Here the intent is to receive the data being sent over websockets through a metro client.Can someone please tell how to achieve...

View Article


GDI Leak in VC++

I have found a GDI leak in our huge application software. Below is a simple program to test this problem. The Idea is that the main dialog box opens another dialog box(dialog box A). If the dialog box...

View Article

using XMFLOAT2 in operators

Hi ther.I'm converting D3DX (math) old code, I have managed to convert some successfully, but I ran into a problem! As we see in the following code...float time , g_PerlinSpeed; XMFLOAT2 g_WindDir;...

View Article

SEH hanlder cause compiler warnings and errors

I use a SEH handler in my code, like this:__try{.. Some codes ...}__except(EXCEPTION_EXECUTE_HANDLER){  TRACE(_T("Exception"));}but get the following compiler errors:I just use __try and __catch, which...

View Article

WSAEventSelect and re-enabling functions

Hi, I am trying to create code for level-triggered socket polling, but I ran into a rather bizarre WSA-specific understanding of what level-triggered means and how it should work, namely re-enabling...

View Article


Image may be NSFW.
Clik here to view.

Regarding ShellExecuteEx behavior in Windows 8

Hi,The code below for file with no-extension brings up a dialog shown below listing applications that can be used to open the file. This behavior is seen only from Windows-8. For platforms less than...

View Article

can't find new project for VC plus plus, i just find new projects for VC or...

after installing visual studion 2013 ultimarte  i can't create new project for VC++, i only can fing VC or VC#.what can i do to get VC++ templates.thanks 

View Article


VsFlexGrid is an activex control, it 's loaded in design time in resource...

I upgrade my project from VC++ vs2008  to vs2013, I use VSFlexGrid7.ocx control, when I build the project  every think ok, and I can run my application, and show all dialog not contain this ocx, when I...

View Article

websocket server

Can someone explain how to write a simple websocket server in C++ (win32). It can be simple in that it could just receive the message it receives from client and echo them back.

View Article


What does the Standard say about these different behaviors?

The following code shows different behaviors for clang++ and VS2013, both with error messages.#include <iostream> class Shape { public: Shape(const Shape&) = delete; Shape&...

View Article

SxS, problem with 8.0.50608.0 and error 0xc0150002

Spending all day trying to solve the problem.System: Windows 7 proStudio: Msvc 2008 pro edition Situation: have a project, it uses some dlls. While running project, i get error 0xc0150002. What i...

View Article

Is C++ XAML Win8 only?

Hi all, wanted to know if you can only use C++ / XAML together to create Windows 8 Metro style apps?  Also can you use the two together to create Windows7 apps?I'm just getting back into C++, was...

View Article
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>