[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Microsoft Development

48K

Solutions

32K

Contributors

Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.

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

Sign up to Post

CWinThread wont exit in Release mode but will in Debug mode visual studio 2017.

Here is what I am doing
CWinThread *ptrDecode = AfxGetThread();
CCriticalSection c_sDecode;
static UINT mDecode(void*);
ptrDecode = NULL;

void myfuction::startThread()
{
      if (ptrDecode == NULL) {
	  ptrDecode = AfxBeginThread(mDecode, this);
	  WaitForSingleObject(ptrDecode, INFINITE);
	}
}

UINT /*WINAPI*/  mDecode(void* pParam)
{
	myfuction* pThis = (myfuction*)pParam;
	CSingleLock lock(&c_sDecode);

	lock.Lock();
	while (1) {
               if (!inputVideo.read(RTSPframe)) {
					//Error
					break;
				}
				
				if (!theApp.RTSPChangeCam) // if == false break out of while loop
					break;

				inputVideo.read(RTSPframe);
				cv::resize(RTSPframe, RTSPResize, cv::Size(RTSPWidth, RTSPHeight), 0, 0, INTER_LINEAR);
				theApp.DX11Images->render();
        }
ptrDecode = NULL;
	theApp.KillDecoder = false;
	lock.Unlock();
	return 0;
}

void myfuction::OnDestroy()
{
	CDialogEx::OnDestroy();
	
	//## make sure nothing is being rendered ##//
	//## kill any RTSP Streams ##//
	theApp.RTSPChangeCam = false;
	while (ptrDecode != NULL) {} // wait until thread exits

}

Open in new window


In OnDestroy() function the while loop waits until ptrDecode == null after theApp.RTSPChangeCam is set to false this cause the while loop in the thread to break and set ptrDecode to null and the dialog then can safely exit this work fine in debug mode and my watch window is showing me that ptrDecode has been set to null but in Release mode ptrDecode dose gets set to null if I place a break point in the thread code but then is reset to not null (seems to get reloaded) when my bullet point hits ptrDecode in the OnDestroy() function, I do not know why this is being re initilized after its been set to null. At no point in my code dose the thread get called again and it only dose it in Release mode.
Is there a setting in my release properties I need to change any help would be great
Regards
Nigel
0
Exploring SharePoint 2016
LVL 12
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Hi, so I have a Visual Studio 2010 solution that I'm trying to open.  The problem is two-fold:

1. I can't open the solution in VS 2010 because it keeps saying I need to install SQL SSDT for 2010.  Tried to find and install it with no luck.  Keeps prompting me for it even when I "think" I have it installed

2. I have VS 2013 also installed but that has SSDT installed for it (again, I believe).  The problem though is that it's saying the solution is under source control so it won't even open it.  How do I "break" the bindings of the source control?

I did not create the solution, it was from a third party.  Any and all help would be great, thanks!
0
Hello- I have a MSDN enterprise subscription through my employer.  If the MSDN enterprise subscription is used to install Microsoft Excel 2010 other software on a machine, would the software stop functioning if the MSDN subscription were cancelled in the future?  

I recently resolved an issue by downgrading Microsoft Office from 2016 to 2010 via my MSDN subscription rather than requesting a standard install through my IT team, so I’m wondering if the software would continue to function in the unlikely event that my subscription were cancelled.  

Thank you.
0
Image Magick C# Library throwing exception

I suspect this is an easy one for you to help me solve.

I am trying to run a Visual Studio project that works on my friend's Windows PC, but is throwing a path/library exception on my Windows Visual Studio Community 2015,where Windows is running on my Mac via Parallels.

I verify the file exists, but then I get the following exception...

Message = "PDFDelegateFailed `The system cannot find the file specified.\r\n' @ error/pdf.c/ReadPDFImage/793"

Exception
and here is the code that throws it:

Code that throws exception
0
SharePoint 2013 Workflow Process Task action always redirects to the Tasks List.  Who wants that and how can I choose an alternate URL?
0
Using:
  • Microsoft Visual Code 1.28.2 x64
  • Python 3.7

I've the smallest code ever
import ldap
print (ldap.__version__)

Open in new window


And i'm getting the error:
  • Exception has occured: ModuleNotFoundError
  • "No module named 'ldap'

I've installed the Wheel found on Christoph Gohlke web site.
using this command: pip install .\python_ldap-3.1.0-cp37-cp37m-win32.whl

I've checked the dependencies as shown here:
Capture.PNG
What am i missing?

Because when i run the following command in terminal, i'm getting "3.1.0" which mean that it can find the ldap module.
python -c "import ldap;print (ldap.__version__)"

Thanks a lot for your help
0
Visual Studio 2015, SSDT, Report Authoring, Windows 10

I am having a very difficult time getting my VS2015 installation to include SSDT and Reporting Authoring Extension (for Fetxchxml).  I have tried suggestions from the web, Stack Overflow and downloaded several versions of SSDT and Report Authoring Extensions.  I have uninstalled versions that didnt work, rebooted and tried again.

I am thinking that if I can get the versions from someone where all three components are working on Windows, I should be able to get this working.  I have had this working on other laptops, older versions of VS and other operating systems.

My environment is:
Dell Latitude i7 | 64-bit processor | x64 processor
Windows 10  | Version 1803  |Build 17134.167
Visual Studio Professional 2015  | Version 14.0.25431.01 Update 3

As for SSDT, not having a lot of problems installing this; it is where I try to install the Report Authoring Extensions that I encounter problems.  I am able to get the RAE wizard to run (to failure) using the advice from this link: http://meganvwalker.com/creating-fetch-xml-reports-using-visual-studio/

When the RAE install fails it tells me that SSDT is not installed; I have tried many versions of SSDT, SSDT-BI, BIDS and Report Authoring starting with the VS2015 versions (and earlier versions).

I am just spinning my wheels.

Thank you.
0
Hi,

Is anybody already registered to MS Action Pak? I just wondering why it ask for : Organization Url*

I try to get test license because Technet does not exist anymore.
0
I'm trying to investigate a problem with resource files generated by Google Omaha. These resource files contain a place-holder token (%1!s!), which is substituted with branding details during the build process. There are numerous language resource files that contains string tables and this

Here is an example string: "%1!s! some arbitrary text"

Where %1!s! is a place-holder for some substitution text?

My question: is this place-holder substitution mechanism a standard part of the Windows resource file mechanism? If so, can someone please either explain how it works? Where does it get the text used to substitute the place holder? I'm assuming the place-holder works similar to place-holders in printf? If so, how does it know which text token to replace this with? If this is not a standard resource file mechanism, does anyone have a clue as to how Omaha does this during the build process?

Many thanks.

Note: I'm not looking for suggestions to use a different approach. This is how Omaha does it and I just need to understand how this works. Thank you.
0
Having bought a new machine (running Windows 10 professional) I Have installed the following:

MS Visual Studio 2017 community
MS SQLServer express 2017
Team Foundation Server express 2015

I find that I do the have the option in VS to "Connect to Team Foundation Server"


I have "Visual Studio Team Foundation Server" set as the Source-Control Plug-in.

I can see my server in Source Control Explorer but cannot add folders or items.

If I go into Team Explorer I can see GIT repos   (dunno how to use these) and I can sometimes add a solution to Source control whereby it is visible in Source Control Explorer temporarily.

How can I connect to TFS correctly in VS 2017 Community please?
0
Introduction to R
LVL 12
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Jump starting Azure development skills

I am a C#.NET Ful Stack, ASP.NET developer, with limited experience with AWS.

I'd like to understand Azure well enough to talk the talk and land a contract job which requires some experience with Azure.

What training videos should I start with to get me started on this road?

Thanks.
0
Need a Windows Forms User Interface to enable OCR User Error Checking

I am in the process of writing a Windows Forms application (in C#) that will use an external OCR module to perform OCR on a PDF containing scanned financial documents. So, I expect there to be errors. But, I want to provide the scanned results to the user in a format where the results can be cross-checked by the user.

Clearly, typing over with the corrected value is key.

What is the easiest way to do this in a Windows Forms program?

Various forms will have different values, so I want this as generic as possible.

Shall I just display the whole block of data as a multi-line text input field?

Any other ideas?

Thanks
0
A  RichTextBox is used to right justify numerals. This is the only reason to use it.

The content to save cannot be directly accessed. Looking on the web examples are found that are complex and difficult to understand. Not realizing that there is some "hoop-jumping" required to get its content, the control was selected. Does anyone know how to do this simply and if not is there any advice that will make retrieving content easier to understand?

Thank you for any advice you may offer.

Bob - NYC Department of Parks & Recreation
0
There is a section in an app that requires the user to type each of 5 items into a RichTextBox. Whenever a controls has focus, SelectAll is called highlight the numeral for quick edit.

--Tab event highlights on entry
--Focus event highlights

--Mouse events do not fired: MouseLeftButtonUp, MouseLeftButtonDown, MouseDown,  MouseUp, etc.

    Private Sub richtxtPerennialsCount_MouseLeftButtonUp(sender As Object, e As MouseButtonEventArgs) Handles richtxtPerennialsCount.MouseLeftButtonUp
        richtxtPerennialsCount.SelectAll()
    End Sub

Without these events when a controls is clicked the content is not highlighted.  What's needed is to highlighted so the content is deleted on first key press.

Any help is appreciated. Thank you.

Bob Cannis, NYC Department of Parks & Recreation
Horticulture Planting Counts
0
My issue or question is about software development in genereal.

I am currently studying software development and will be studying software engineering shortly. At the same time I am doing an internship have been asked to create an employee database with Microsoft Access. As I am developing this by myself, I will doing it the traditional way: software elicitation/Analysis/requirements/implementation - the way taught at university.

This morning, I was asked by my boss how long it will take me to complete this project. As I am doing it for the first time in such a structured way, I would appreciate it if I could get some feedback from you guys how long it can take to complete a smaller Access project -  either each phase of development (following IEEE format) or for the entire project.

Although my boss has worked in (big) projects, they apparently never worked in structured way: not agile, spiral, waterfall etc.. Although the product works, I thought that not only is important to deliver a quality product, but also add quality how I work.

Could it be possible that my approach is too structured and some Projects are indeed never done in a structured way?
Or that what is taught in software development/engineering is not applied in real projects - in other words too theoretical?

Thanks for your feedback

Massimo
0
Hello,

This is a follow-up to another thread located here:

Create an executable file to open a non-executable file

In that thread, expert Joe Winograd provided a solution which involves creating an AutoHotkey (ahk) "Run" command (which I know how to do) then compiling the resulting .ahk file to create an .exe file. That was a great solution and I'm glad to now know how to do that. However, since closing the previous thread, I've realized that that solution is not practical for the specific purpose* that prompted my question.

As a result, I'm back to my original question which is:

How do you directly create an executable file (.exe or .cmd) to open a non-executable file (.xlsm, .txt, .ahk, etc)?

In the previous thread, expert tuvi suggested putting the following in a .cmd file:

start C:\Users\UserName\FolderName\FileName.xlsm

Open in new window

Unfortunately, while I know how to place a command in the cmd/prompt/DOS window (not sure what it's called), I do not know how to create a .cmd or .exe file. I tried simply pasting the above line in a Notepad window then saving it, first with a .cmd extension and then with an .exe extension but neither of those worked.

It seems like something I should know how to do but that's why I'm happy all of you great experts are available to answer questions. :)

Thanks…
0
Published iOS app about 18 months ago using Xamarin Studio.  Now that its Visual Studio 2017, need to recreate Apple certificates and profiles and then use fastlane to install them on my Mac.  App builds fine and it runs on an iPhone attached to my Mac.  Looking for a consultant who can help me with this process.
0
I'm trying to get the Word Inking feature to start when opening a document.  I have tried the following code:

ActiveDocument.CommandBars.ExecuteMso("InkingStart")

This throws an error on Document Open, running it from a macro and running it from the immediate window.

What am I missing?
0
Issue adding a local wsdl file for royal mail to visual stusio 2017 in c#.
Print screen f error attached. Invalid URI.
Royal-Mail-API-Shipping-V2--28SOAP-2.zip
error.jpg
0
Amazon Web Services
LVL 12
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

How do I get Visual Studio 2017 to validate <script> tags in source code with CORS attributes?

Okay, this is an annoyance rather than a life or death problem!  I am working on a website which uses externally hosted scripts in some of its pages.  The script tags have CORS attributes (integrity and crossorigin).  Visual Studio is validating the code against the HTML5 schema.  So Visual Studio is picking these up as warnings in its error list and underlining the code with green squiggly lines.

I know I can just ignore them, or turn validation off.  I'd prefer to have them recognised as valid markup.  Is there any way that I can do that?
0
InfoPath 2010 form submission is not saving to sharepoint 2010 site, and end user has no errors upon submission.  The .xml file does not get saved to sharepoint, how do you troubleshoot this?  I figured it was something like incorrect permissions to a site/library for the end user to save their files.  But I check an Identical user permission with someone that is able to submit and view their documents.  The user that does not work has identical permissions.  Its very strange, and there are no reported errors from the user...
0
Creating an SSIS app with VS 2015.  Finally have the pieces connected.  When I run it I receive the below error.
===================================

Failed to start project (Microsoft Visual Studio)

===================================

Error starting debugging. (Microsoft.DataTransformationServices.VsIntegration)

------------------------------
Program Location:

   at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
   at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)

===================================

Unable to 

Open in new window

0
I'm able to pass the query parameter successfully to the field however when the item is saved the record is not being saved to the list. What's interesting is that if I manually override the passed value by typing into the field on the form and then clicking save, the record is saved to the list .

We have a working example of this on the same site for a different list that we created about a year ago and does not have this issue.


Original Code Provided when a new form was created for the list in SPD:
<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="New" FieldName="AttachmentsID" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@AttachmentsID')}"/>
<SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="AttachmentsID" ControlMode="New"/>


Removed the above code and replaced with the following:                                                            
<asp:TextBox runat="server" id="ff1{$Pos}" Name="FileName" Text="{$AttachmentsID}" Value="{@AttachmentsID}" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@AttachmentsID')}" Width="100px" Height="20px" BorderWidth="0" />
0
C#.NET:  Need to write to a PDF which I password protect after I write to it.

I'll be creating a WinForms application in C#.NET and need a PDF library to read and write to a PDF and to be able to lock that file after I write to it.

Suggestions?

I prefer free, if possible.

Thanks
0
Making a cross platform Forms App for Windows, Mac, iPhone, Android

I just installed .NET CORE for Mac and selected Project > New Solution but was surprised to not find an option for Windows. iOS is iPhone and Mac, true?

Anyway, do I build the entire app once for these four platforms? Or do I build common objects and need to create custom UI's for the mobile side with Xamarin?

Thanks
0

Microsoft Development

48K

Solutions

32K

Contributors

Most development for the Microsoft platform is done utilizing the technologies supported by the.NET framework. Other development is done using Visual Basic for Applications (VBA) for programs like Access, Excel, Word and Outlook, with PowerShell for scripting, or with SQL for large databases.