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

Best C++ practice for new variable length struct?

I have a structure that looks roughly like this:struct myStruct {short vectLen;char sevs[1];// actually vectLen long};That layout is mine and not absolutely cast in stone, but it is what makes sense...

View Article


error C4430: missing type specifier - int assumed. Note: C++ does not support...

Why am I getting this error message?? It must be something simple such as typo that I am over looking, any help would be appreciated!! Error:error C4430: missing type specifier - int assumed. Note: C++...

View Article


is not recognized as an internal or external command operable program or...

i get the following message when i try to compile my programm "is not recognized as an internal or external command operable program or batch file c++"what can be the problem? i saw that question is...

View Article

how to list files or dir with _popen?

char dir[MAX_PATH]="";sprintf(dir,"dir %s",cur_dir);/////cur_dir ="c:\program files"FILE* cmd_dir=_popen(dir,"wt");_pclose(cmd_dir);IF cur_dir is "c:\program files" is fail , I guess program^files...

View Article

Strategy for building an interface program to home grown peripheral device.

i am a c++ developer typically working with mfc and win32.  I realize I am asking for opinions but was hoping to gain a number of possible answers.  Recently I've been ask to develop a reusable...

View Article


Mixing Unmanaged C++, C++/CLI, and C# code

The following says that it is possible to combine c#, c++ managed and c++ unmanaged code.Mixing Unmanaged C++, C++/CLI, and C# codeCan this be done inside Visual Studio?

View Article

Visual C++ Form: How to transfer execution flow from .h to .c file

Hi,I want to develop a Visual C++ application with GUI (Visual C++ Form)& the GUI related class is created in the header file with their component callbacks by default.So when in .c file in main...

View Article

plz help me .. /fatal error C1083: Cannot open include file

im using MicrosoftVisual Basic 2010 Express c++Errors >1>------ Build started: Project: AppFirewall, Configuration: Debug Win32 ------ 1>  Appfilter.cpp 1>Appfilter.cpp(11): fatal error...

View Article


'File name' is not recognized as an internal or external command, operable...

Hello there,I previously had the problem that I couldn't compile a simple code program, which has been solved, but now I'm having this problem that after I compile it (using cl /EHsc 'file name'.cpp)...

View Article


GDI+ Microsoft Visual C++ 2010 Edition Error

Hello, My name is Patryk,I am a programmer, more or less and I have ran into this problem:Error:No instance of overloaded function "Gdiplus::Graphics::DrawRectangle" matches the argumentI checked the...

View Article

GUI application using C in Visual Studio 2010

I'm used to C# winforms and Visual studio, but now i have to make a GUI application using gnsdk - gracenote C API. I found that i can compile C in Visual Studio and i can use mfc/win32/console but i'd...

View Article

Activation context generation failed for "MFC80.DLL".Error

i am getting below error on Win 7 64 bit. this is happening intermittently."Activation context generation failed for "MFC80.DLL".Error in manifest or policy file "Microsoft.VC80.MFCLOC.MANIFEST" on...

View Article

MFC Ribbon: CMFCRibbonButton::RemoveAllSubItems() in CView::OnUpdate leads to...

Steps to reproduce:Create an Outlook-type MDI project with Ribbon user interface. In the OnUpdate member of you CView class, add the following code:CMFCRibbonBar *pRibbon = ((CMDIFrameWndEx*)...

View Article


The designer could not be shown for this file because none of the classes...

I am trying to update my code from VS10 to VS13 desktop.I am getting the error: The designer could not be shown for this file because none of the classes within it can be designed.  If I add /**/ to...

View Article

PropertyGrid, custom TypeConverters and COM

Hello,I hope I am posting this question in the right forum, if this is not the case I am deeply sorry.I have a problem with custom TypeConverters and COM. I have a normal control with one property grid...

View Article


[MFC] some problems in connecting to MS SQL 2014 with OLE DB

Hi, I'm a student.During homework, There is a problem.Connect to MS SQL SERVER 2014 is OK. And Add class for Stored Procedure in SQL SERVER.Here is the code.[DB class]class CRegister_StudentAccessor {...

View Article

m_strFilter in 2012 - fllter combo box string with db

db_login->m_strFilter= "Username ='"+m_str_combo+"'"; // Filter the username from the table. if m_str_combo is string getting from combo box which needs to be filtered with db. How to do it in...

View Article


Variadic friend class function causing internal error

I am trying to make a variadic function a friend to another class, the issue however is that it causes an internal error. Here is the replicable minimalistic test code:class foo{ template <class T,...

View Article

vc++_unable to read memory_unable to read characterss of string,when...

Hi Everyone,i Compilled existing vc6.0 project in vs2012(after converting it), i had to ignore the libcmt.lib & etc related libraries to make the project compilable in vs2012. But when i executed...

View Article

BHO calling Javascript - DISP_E_UNKNOWNNAME

Hi,I have developed a BHO, from which I am invoking Javascript functions. When I run this using the Visual Studio Web Browser Debugger, it all works fine - I can locate the Javascript functions and...

View Article
Browsing all 15302 articles
Browse latest View live


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