Visual C++.NET

6K

Solutions

2

Articles & Videos

5K

Contributors

Microsoft Visual C++ (often abbreviated as MSVC or VC++) is an integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages. It features tools for developing and debugging C++ code, especially code written for the Microsoft Windows API, the DirectX API, and the Microsoft .NET Framework. Many applications require redistributable Visual C++ packages to function correctly and are often installed independently of applications, allowing multiple applications to make use of the package while only having to install it once

Share tech news, updates, or what's on your mind.

Sign up to Post

If anyone knows  whats use of CStringData and CFixedStringLog class? and how to use them?,please give example
0
Free Tool: Port Scanner
LVL 8
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Hi Experts,

I'm using VS 2013.

I've got this VB.NET Windows form (attached).

When I double click on it's name in Solution Explorer only the source code opens, not the Designer.

That form was working OK a few days ago.

Regards,
Leigh
VB.NET.zip
0
I have been able to create a CRecordSet object in MFC to query a database table. Is there a better alteranitive to using CRecordset? to run queries against sql server?

CRecordset is derived from CDatabase, so I don't know iif somehow possible to just use the CDatabase class instead. They are both ODBC.


Should I stay away from ODBC, and use something else to connect from C++ MFC to sql server?
0
Hi Experts,

In my VB.NET project the Project | Properties | Settings defines this Connection String:

Name: LOADSConnectionString
Type: (Connection String)
Scope: Application
Value: Provider=Microsoft.Jet.OLEDB.4.0;Data Source="|DataDirectory|\CIRCLY Data\LOADS7.cmdb";Persist Security Info=True

At runtime, how can I get/set the Connection String, LOADSConnectionString? after DataDirectory is resolved (I know how to access the values in Settings).

More specifically can I get/set Data Source, or do I need to work with the full Connection String?

Regards,
Leigh
0
Hi Experts,

In my VB.NET project the Project | Properties | Settings has a number of Connection Strings, e.g.

Name: LOADSConnectionString
Type: (Connection String)
Scope: Application
Value: Provider=Microsoft.Jet.OLEDB.4.0;Data Source="|DataDirectory|\CIRCLY Data\LOADS7.cmdb";Persist Security Info=True

If I click on the ... button on the right, it shows:

Connection Properties

Database file name:
D:\Dev-Ver7.0\VB.NET\VB.NET\CIRCLY Data\LAYERS7.cmdb

This is the file that gets opened when I use the Database Table designer to Preview data etc.

I want to know the significance of the string "|DataDirectory|" in Data Source="|DataDirectory|\CIRCLY Data\LOADS7.cmdb".

I've searched for references to "DataDirectory" in the project, and it is not defined anywhere.

Given that "DataDirectory" is undefined, does that mean that Data Source will resolve to "some path?\CIRCLY Data\LOADS7.cmdb"

If I did want to define "DataDirectory" - how would I do it?  Via Settings?
Also what is the significance of the "|" characters?

Regards,
Leigh
0
Hi Experts,

I'm running Visual Studio 2013.

I am trying to debug vb.net code.

How can I have the debugger break when a Public variable changes value?

I thought Debug > New Breakpoint > New Data Breakpoint... may be the way to go, but New Data Breakpoint... is greyed out.

Regards,
Leigh
0
Hi Experts,

I'm getting this compile error:

Unable to find connection 'LOADSConnectionString (MySettings)1' for object 'MySettings'. The connection string could not be found in application settings, or the data provider associated with the connection string could not be loaded

I've looked through the text of the source files, but cannot find the offending text - with the '1' at the end of the connection string 'LOADSConnectionString (MySettings)1'.

Here is a .zip file containing the DataSet files and the Settings.settings file.

Regards,
Leigh
0
Whole sample project can be found here: Sample project

Normal MDI child:
normal.png
MDI child is detached out of MDI client area:
float.png
Problem is after MDI child is detached, I am not able to click on menu/controls anymore.

I think one approach is to subclass winproc of MDI app, and then catching the messages and redirect them (like this one). But I dont know where to begin.

Any idea/ other approaches are welcome!

The code I used to detach MDI child:

HWND MDIHwnd = pMainFrame->m_hWndMDIClient;
HWND mdiChildHwnd = GetWindow(MDIHwnd, GW_CHILD);

unsigned int style = GetWindowLongPtr(mdiChildHwnd, GWL_STYLE);
style = (style & (~WS_CHILD) | WS_POPUP);
SetWindowLongPtr(mdiChildHwnd, GWL_STYLE, style);

WaitForInputIdle(mdiChildHwnd, INFINITE);
SetParent(mdiChildHwnd, NULL);

WaitForInputIdle(mdiChildHwnd, INFINITE);
SetWindowLongPtr(mdiChildHwnd, GWLP_HWNDPARENT, (long)MDIHwnd);

Open in new window

0
Hi Experts,

I want to change the "Time Stamp" property for my workspace from "Current" to "Checkin", as shown on the screendump in this article.

My problem is that I can't find that screen in my Visual Studio 2013?

Regards,
Leigh
0
Hallo,
I have written this program with mfc c++ and it looks nice on a 4:3   17 inch screen.
Every screen/display works from 1280 x 1024 to 800 x 600.

On an 16:9   22 inch screen the pictures on my bitmaps are looking much to big.
Every screen/display will have this bad look.

This is the nice look of a 4:3  17 inch screen:

4 : 3   17 inch screen


This is the bad look of a 16:9  22 inch screen:

16:9   22 inch screen


Can you help me to fix this?
500 points with a solution.

Best regards,
Thomas
0
Announcing the Most Valuable Experts of 2016
LVL 6
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

My  application is getting  terminated  with exception.I  kept try catch  block and caught  exception
               
Method not found: 'Void System.Net.HttpWebRequest..ctor()'.

Screen hot attached.Already it took  for me a day to trace a  bug.Now I need to resolve it.
Please help.
Bug.png
0
I recently installed Visual Studio 2017 and after that whenever I reboot my computer I get a prompt asking me which program do I want to use to open an unnamed file. I picked wordpad and it opens a text file that appears to be the install log for .NET SDK. My question is how do I get rid of this prompt to open the install log? I looked in "Startup" and msconfig and I can't find anything doing that. Any ideas what is causing this and how to get rid of it?
See the attached file.Boot-Problem.txt
0
I  need  to  use  STL  library  functions  like  vector,deque  in  my  application  which  is  combined  CLR,MFC  application  of  Visual  C++.
Project  is  built in visual studio 2012. How to  include  stl  library.Also  please  let  me  know  while  deployment  of  project  what  precautions I need  to  take.
0
Hello,
I'm getting ready to install MS Visual Studio 2013 on a computer that I already have Eclipse Neon installed.  I do not see that there will be any conflicts between these two IDEs, but I thought I would ask you for your opinion/knowledge.
thanks
0
Hi

I have been tasked with making some modifications to a legacy C++ application. I have extremely limited experience with C++, I'm a c# developer but was implement changes required and compile it using the 64 bit configurations and it works as expected. I'm now task to create a 32bit version of the application.

I have already done the steps below but when executing the .exe, I get the following error: app.exe is not a valid Win32 application.

How do I compile the same application to target 32bit? using vs2012
19-01-2017-11-38-11-AM.jpg
19-01-2017-11-08-45-AM.jpg
0
Hello Experts,
our app is capable of sending sms and email programatically to groups of patients who need special health care indications or guidance. Also to remember their medications, or appointments. Our database does it outomatically following a schedule that nurses use....all works fines.... now is it possible to do the same with whatsapp ?? from our app ??
Best regards
0
I have solution that contains a number of projects.  Is there a way to create a class at a solution level so that it can be used from any project within the solution?
0
How to resolve dependency issues in C sharp?
screenshot.PNG
0
Hi Experts,

How can I check if the current user of my application is an administrator?

Regards,
Leigh
0
Free Tool: Path Explorer
LVL 8
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Hello Experts,
This time our goal is to be able to measure sizes in dental/orthdontic radiographies.
Our app gets the radiography directly from any kind of xray machine,

Now how do you do to measure distances in an image....fox example from this dot to this dot?
we work with visual basic and visual c#

All ideas to measure distances or angles in images are very welcome.
if there is source example also great.

Regards,
0
I need to add the Microsoft.Office.Interop.Excel namespace reference so I can apply an Excel macro in a SSIS Script Transformation Component.  When I edit the Script Transformation and go to add a Reference, Microsoft.Office.Interop.Excel does not exist.  I've made sure that .NET Programmability Support was selected when I installed Microsoft Office and I've also installed the Visual Studio 2010 Tools for Office Runtime.

The code I need to add looks like this but it don't build without the namespace reference.  Thanks!!
Excel.Application xlApp = new Excel.Application();
Excel.Workbook xlWorkBook = xlApp.Workbooks.Open("C:\\ExcelDirectory\\DATA.xlsm"); // absolute path needed
xlApp.Run("Formatting"); // method overloads allow you to send it parameters, etc.
xlWorkBook.Close(true); // first parameter is SaveChanges
xlApp.Quit();

Open in new window

0
Hi Experts,

I'm getting the above error.

I'm running Visual Studio 2013.

I've copied the DLL to the same folder as the .VB source files, but that doesn't work.

Regards,
Leigh
0
I am writing an application in Visual C# 2015 that produces reports. On the header I display a default logo (this uses a linked resource that is installed during install).

I want to enable the user to select their own image to use in the header. Can the resource file be replaced at runtime by user selected image.

Alternately, I was thinking of using a "setting" that is string which initially has say "Use Resource Image". If the user selects their won image then I change the setting to path and name of their image.

In the rendering part of the report I check the setting and use either the resource or user selected file dependent on the setting value.

I think this would work but if they inadvertently move their image file the program will have issues. It would be good if the program could load their image as an embedded image so it is always available.

Any help much appreciated.
0
I'm getting this error after a forced install of Windows 10.
runtime error, Internet ExplorerI googled this and there's a healthy number of posts, like this (2013), this (2013), and this (2012). Other posts go back to 2008.

It started for me when Windows 10 was installed over Windows 7, in early 2016 I think.

The solutions in the posts aren't too cut and dried, "try this", "try that", like Windows repair, go to a restore point, clean boot (?),

Here's my PC, HP Pavilion laptop g7
HP specs
0
Hello,
when I want to debug my program and I did no change to the code
I allways get the window....debugNormal this windows show up if I did any change. But I will show up everytime.
The debug windows shows....debug windowThis is my version:
debug
That the windows shows up everytime was after I had enclosed a bitmap.
But this bitmap is saved.

Please help...what can I do?

Thank you.

Best regards,
Thomas
0

Visual C++.NET

6K

Solutions

2

Articles & Videos

5K

Contributors

Microsoft Visual C++ (often abbreviated as MSVC or VC++) is an integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages. It features tools for developing and debugging C++ code, especially code written for the Microsoft Windows API, the DirectX API, and the Microsoft .NET Framework. Many applications require redistributable Visual C++ packages to function correctly and are often installed independently of applications, allowing multiple applications to make use of the package while only having to install it once

Top Experts In
Visual C++.NET