Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Microsoft Development

47K

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

It is VC++ MFC app in VS 2017 Community under Win 7 Pro SP1.

It is very simple to send and process WM_NOTIFY from a dialog's child MFC control to it parent (or to other window.) In control cpp you fill NMHDR structure for the control, get its parent, and send a WM_NOTIFY message like pParent->SendMessage (WM_NOTIFY,...).

In the parent you set the entry in the message map like ON_NOTIFY(Notification code, ControlID, Message Handler) and the handler is called.

But if yoy set the control ID to ID of the modeless dialog box like IDD_MYDLG and fill NMHDR with dialog's parameters, the handler in the parent is never called. Of course, there is a hack: you can use any of dialog's controls to send the WM_NOTIFY, and all will work.

My question is: Is there any way to send WM_NOTIFY from the modeless MFC CDialogEx using its own  ID?
0
[eBook] Windows Nano Server
LVL 1
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

I need to make sure that if a particular value is set in a dropdown that a textbox has some text explaining why the other value is set.  It almost works.  What I did is as follows:
On the data tab,  I selected Submit Options and said to allow Perform custom action using rules
At that point the Forms Submit button was enabled and I added a rule as follows
If SomeDropDown has "SomeValue" and "RelatedTextBox" is not blank allow the submit.

It works in the sense that it won't save the form without the related text if the dropdown has "SomeValue", but it doesn't stick on the page with a message to fix it and just closes as though it is saving the data.  When I do enter "SomeValue" the form saves as expected.

What am I missing and how do I get the "error" condition to appear?
0
Good day  forum


from https://docs.microsoft.com/en-us/windows-hardware/drivers/network/using-bind-or-connect-redirection
"A WFP redirect record is a buffer of opaque data that WFP must set on an outbound proxy connection at
 the FWPM_LAYER_ALE_AUTH_CONNECT_REDIRECT_V4 and FWPM_LAYER_ALE_AUTH_CONNECT_REDIRECT_V6 layers, so that
 the redirected connection and the original connection are logically related."
 
 Am working with  ClassifyFunctions_ProxyCallouts.cpp of WFP driver sample  (https://code.msdn.microsoft.com/windowshardware/Windows-Driver-Kit-WDK-81-cf35e953)
 
 
 What is confusing me is this, being that am working on the (FWPS_LAYER_ALE_CONNECT_REDIRECT_V4) and (FWPS_LAYER_ALE_CONNECT_REDIRECT_V6) (Kernel mode)
 
 How do i set up proxy connection  at this layer.
 
 thank you
0
I have an access 2010 application distributed via the packaging wizard. It works well except that shortcut menus are nos available in forms.
For example, there is no way to copy or paste with shortcut menus.
In the source file they are available.
What should I do to make them available in the distributed package?
Thanks in advance.
0
Everything was going well... playing around with Visual Studio 2017 for the first time...

Had a weird problem (#1, but not really what the question is about where even though I set the Assembly Name and Root Namespace names, ApplicationName was still returning "WindowsApp1" when referenced... so I thought maybe it's building using that temp name when run from VS IDE.  So I compiled it into an app and deployed it.  Same result...

So I try re-opening the project - I can't open forms!  I can a new form, but when I try to open the main form, the only "main" reference I have is main.vb.  And when I open that, I don't have any code either!  I have one other form in the app and I can't open that either (but the code is visible).

I'd really like to continue this project but I need to see the forms!  HELP PLEASE!?!

(Classic Windows Forms app).
0
Hi There!

I have a customer who is a developer. They have 12 staff. 5 Developers 5 support people, 1 director and 1 sales/admin person.

They have an action pack, which covers up to 10 users of Exchange, Windows CALS etc, and that's fine.

What they are trying to do it make sure they are correctly licensed for dev machines, dev environments and testing labs.

It used to be that companies bought MSDN Subscriptions but I think those are now only for individuals and not for use in businesses at large? I had heard about MSDN Platforms but when I checked the pricing the customer just about died.

Anyone know of a more cost effective way for a company this size to correctly license their environment?
0
Hi Team,

Requirement :   I want to roll up the measure values(Qty/Amt) from Week-->to Month-->to Quarter-->to Year.

Issue : measure values are not rolling up.

Methodology Used :

Used roll up function in sql server and pushing the aggregated values in to temp table(#) . Then pushing the values from temp table  in to respective physical tables based on the column values (Fiscal_Year/Fiscal_Month/Fiscal_Quarter/Fiscal_Week).

Reason to use this method :  
Underlying table( mba_related_sales_by_day ) has billions of records . Henceforth can't afford to do repeated aggregations from Year table  to Quarter table  to Month table  to week table  as this consume lot of time . In order to reduce the timelines of the ETL processing ,used this method.

Please correct my code and help me  with the solution. Will appreciate your help in this regard.

Here is the code used in stored procedure.

IF OBJECT_ID('tempdb..#tmp_mba_related_sales_agg') IS NOT NULL
	DROP table #tmp_mba_related_sales_agg;

Create table #tmp_mba_related_sales_agg
(
datasource_id int null,
calendar_day smalldatetime,
fiscal_year int null,
fiscal_quarter nvarchar(100) null,
fiscal_month nvarchar(100) null,
fiscal_week nvarchar(100) null,
business_unit_id nvarchar(100) not null,
sales_item_hierarchy_level int not null,
sales_item_id int not null,
related_sales_item_hierarchy_level int not null,

Open in new window

0
Morning techs,

I work for a large Computer Aided Dispatch software support company.  We supply the HW and SW that runs in Police and Fire Departments all over the world.  

At my Tier, the Tier one we basically gather logs and screenshots from the dispatchers computers to escalate tickets to the Engineers.  There is an error report functionality but the DISPATCHER (whom you know is extremely busy) must MANUALLY run it themselves at time of event.  

Are there any *light* tools out there that can be installed onto the dispatchers computers that would log error reports automatically?

Computers are running Win 7 with just the dispatching SW

Thank you,
Mark88
0
Hi , When i'm downloading the excel file,i'm getting following attached error.How avoid this error

XML file output


<?xml version="1.0" encoding="UTF-8" standalone="true"?>

-<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">

<logFileName>error042240_01.xml</logFileName>

<summary>Errors were detected in file 'C:\Users\abc.com\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\PGARRIST\Report_Isys.xlsx'</summary>


-<additionalInfo>

<info>Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.</info>

</additionalInfo>


-<removedParts summary="Following is a list of removed parts:">

<removedPart>Replaced Part: /xl/worksheets/sheet1.xml part with XML error. Illegal xml character. Line 1, column 267478.</removedPart>

</removedParts>

</recoveryLog>
1.png
0
hi,
I need to write bookmark with parameter in ssrs.
and I don't know the syntax.

Can anyone help me?
0
NFR key for Veeam Agent for Linux
LVL 1
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

I just started checking out MimiKatz and all that it can do. My question is simple (and complex to answer), what are some methods that can prevent/secure any cleartext passwords stored in memory and prevent an attacker from being able to retrieve those?
0
hi,

it seems that MS only release SQL server data tools for VS 2015 so that we can admin and develop even SSIS project within VS 2015, how about VS 2017?

it seems we don't have this option to develop SSIS package inside VS2017, am I right?
0
I am a C#.NET developer but have not yet touched Core. I am in the midst of a job changes and have some time, which I could put int learning the basics of .NET Core.

Is that a good idea?

I do not se many member in the few .NET Code topic areas, unless I am missing the bigger TA's.

Thanks
0
howshow.png
How to show columns?
0
Hi, new member here and first post. My goal is to create a basic tab control using the Win32 API that contains a canvas for rendering OpenGL. Please see attachment for my source code. I created a tab control with two tabs; the first tab contains a button and the second tab contains the rendering context. The first tab, when active, successfully displays a button. The second tab, when active, does not display the OpenGL canvas. The only way I can get the canvas to appear in the GUI is to exclude the tab control (comment out the CREATE_TAB_PANE macro in my example to do this). I am rendering the OpenGL context within a static control. Thanks in advance for your help.
OpenGlTabWin32.cpp
0
language : c++
(tools : visual studio , acrobat reader)
thanks a lot
0
Hello There,

I am trying to create two column report for labeling purposes, I followed instructions on the following link : blogs.wrox.com/article/creating-mailing-labels-in-sql-server-reporting-services

but the data keeps appearing on one column and not on both columns, I changed all sizes and tried tables and lists same results, it just wont populate the second column : ( .

Any help is very much appreciated.

Thank you in advance.
0
Guys, i have a question as specified above!

 '' Enable Double-Buffering for everything.
    Protected Overrides ReadOnly Property CreateParams() As CreateParams
        Get
            Dim cp As CreateParams = MyBase.CreateParams

            cp.ExStyle = cp.ExStyle Or &H2000000
            Return cp

        End Get
    End Property

Open in new window

0
I am currently looking for a way to detect if the "Pause Printing" option in the "See What's Printing" window is checked in Windows.

I've searched high and low, and looked into the Win32 native printing API (winspool) to see if there was such a detection available, but to no avail.

Is there anyone who has experience with a successful implementation of this detection?

I'm looking for a solution in either C/C++, or C#.
0
On Demand Webinar: Networking for the Cloud Era
LVL 10
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Hello all, I'm new in Exchange Server, and I'm installing at my office Exchange Server 2016, when I test it with the microsoft connectivity analyzer with the option "Exchange ActiveSync"  at  https://testconnectivity.microsoft.com I get the next tons of errors, and I dont know how to solve them :( , hope some one can help me, thanks in advance


Attempting to test potential Autodiscover URL https://mydomain.mx:443/Autodiscover/Autodiscover.xml
Testing of this potential Autodiscover URL failed.

Attempting to contact the Autodiscover service using the HTTP redirect method.
The attempt to contact Autodiscover using the HTTP Redirect method failed.


The Microsoft Connectivity Analyzer is checking the host autodiscover.mydomain.mx for an HTTP redirect to the Autodiscover service.
The Microsoft Connectivity Analyzer failed to get an HTTP redirect response for Autodiscover.
Additional Details
An HTTP 403 forbidden response was received. The response appears to have come from Unknown. Body of the response: HTTP Response Headers: X-FEServer: BLMEGNAHCXE Content-Length: 0 Date: Wed, 28 Jun 2017 01:53:57 GMT Server: Microsoft-IIS/10.0 X-Powered-By: ASP.NET
Elapsed Time: 178 ms.


Attempting to contact the Autodiscover service using the DNS SRV redirect method.
The Microsoft Connectivity Analyzer failed to contact the Autodiscover service using the DNS SRV redirect method.
Additional Details
Elapsed Time: 90 ms.
Test Steps
Attempting to locate SRV record …
0
need custom osd rename L-CITY-serial
L for laptop So for desktop +select city -7 serial computer

I already design that in powershell but it works in local client machine it doesn't work via sccm tasksqence. maybe need to know some tasksqence variables to do this . mdt , udi sccm
0
Hello Experts,
In continuation to : https://www.experts-exchange.com/questions/29014655/Powershell-help-for-creating-accounts.html
I have a further enhancement request,
I have 2 Columns in SQL
ADGroup & O365Group

These columns contains values, which are separated by comma (,) these are existing groups in AD & O365
I want them to be integrated into the script so that when the new user is created he is added to the respective groups in both the places.

Thanks in advance.
A
0
I have an unbound object frame which is an Excel Chart and want to connect the datasheet to an Access query in the database so it is always linked to the data source.   For now I have copy/pasted the information from the query to the datasheet and set up my chart but how do I directly link to the query so it updates in real-time?
0
When I use FileInfo to return the size of a file for me, it is returned in bytes. The code is simple enough.
FileInfo fi = new FileInfo(filePath);

Open in new window

The code then returns 16599774 bytes for the file in question.
size in bytesI then convert it to Megabyte by using the following code in an extension method.
return (bytes > 0) ? (bytes / 1024f) / 1024f : bytes;

Open in new window

I return the MB size as follows:
$"{Round(fileLength.ToMegabytes(),1).ToString()} MB";

Open in new window

I see that the size returned is 15,8 MB. When I look at the file properties however, I see this:
file propertiesWhen I view the file in Windows Explorer, I see a different size again
explorer sizeMy question is this:
1. Why the difference in file sizes between 15.8 MB and 16 599 774 bytes that I am seeing in code and in the file properties? Does it have to do with the data types? The bytes being long and the MB being double?
2. Why is the file size in Windows Explorer different again at 16 211 KB?
I understand why there is a difference between Size and Size on disk, but not between bytes and MB.
0
I want to create a program or a service which keeps an eye on the usb ports, and sends an email when the usb keyboard would be removed or tampered with!

Can it be done in the task scheduler, so that an usb event kicks off the task of sending an email to a certain address, in an some email application ?

Or do You know off an utility which can do it?
0

Microsoft Development

47K

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.