[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

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

Hi

I am looking for a VB script that would allow to type full name or users name in a search box that would run against certain LDAP groups (43 groups) to confirm if the user exists. If the user exists the output should be display on the screen and save in CSV file.

These 43 groups exists in AD (LDAP).

Thank you, M
0
New feature and membership benefit!
LVL 10
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

I need to refresh my use of writing unit tests with Visual Studio and hope to download some simple program with a handful of working unit tests I can inspect.

Thanks
0
I know that strings are immutable and that C# offers the StringBuilder class which allows you to manipulate the string without constantly re-creating that string.

What other features of C# are there for large strings? Just the class name is fine.

Thanks
0
I am trying to get ready for a coding test and would like to have a list of C# looping constructs on the top of my mind.

I can think of:

- For loop (indexing and arrays)
- Foreach (items in a list)
- While
- Do while

and some reserved words which relate are:

break
continue
return
yield

what did I miss?

And how about LINQ?

Are there explicit loops possible?

Thanks.
0
I have not done unit testing for a little while and expect a test upcoming to verify I can quickly write unit tests.

Suggestions of the thing I should be practicing?

Unit tests generate their own mock data, but I doubt a test would include me setting up a mocking framework. I think hard coded lists of objects would be the ideal method, on a coding test.

I assume the object wold be written already for me (it's going to be a 15 minutes test only)

I would create an instance of the object, review the parameter list for that method being tested...

I could create multiple sets of test data. Would a switch statement be appropriate for this kind of knock em out unit test? I could iterate through and handle a handful of test conditions...


Assertions are key.

Once it fails, the unit test fails. I need to be sure the specific test condition which failed the assertion is visible in the console.

Am I approaching this test the right way?

Suggestions?

Thanks.
0
I use Visual Studio Code on Windows to code Angular, with a Node server running and Chrome as the browser.

Is there a way to set breakpoints?

I assume Chrome breakpoints work the same as with Javascript, with no issue.

I also know that Visual Studio debugs Javascript (with breakpoints) for the old Internet Explorer.

What are my options for setting breakpoints easily with Angular? I do not find Chrome easy since I need to find the file, find the line number, etc. I much prefer using Visual Studio since it's more like a WYSIWYG type of setting breakpoints.

Suggestions?

Is there a modern browser which works with Visual Studio the way VS once suppoted Internet Explorer?

Thanks
0
I am trying to debug an issue a user is having and that I cannot reproduce. The application is VB.NET and I would like to be able to send the exception data and the stack trace to debug trace output so that I can use DbgView to capture it. Is this possible?
Sid
0
This code looks up all groups for the identified user account in a column,  I would also like to add the Account status so can tell if account is  Normal.

 If strLockStatus = 512 Then
 AccountStatus.Text = "Normal"



On Error Resume Next
Set UserObj = GetObject("WinNT://" & DomainString & "/" & UserString)

If UserString <> UserObj.Name Then GoTo SkipBuild

For Each GroupObj In UserObj.Groups
ActiveSheet.Cells(intRow, 1).Value = GroupObj.Name
intRow = intRow + 1
Next

GoTo SortList

Open in new window

0
Hi,

This macro was working perfectly fine until upgrade to O365 now gets an error when executing.  An Oracle client is already installed and working for other applications.

Run-time Error '-2147467259 (80004005)':

image of error message
ElseIf LoginEnvCred.ComboBox1.Value = "UAT2" Then
'On Error GoTo AdoError
'''''UAT2''''''
'---- Replace below highlighted names with the corresponding values
strCon = "Driver={Microsoft ODBC for Oracle}; " & _
"CONNECTSTRING=(DESCRIPTION=" & _
"(ADDRESS=(PROTOCOL=TCP)" & _
"(HOST = XXX.XXX.XXX.XXX)(PORT=1521))" & _
"(CONNECT_DATA=(SERVICE_NAME=mbet02r_oltp)));uid = " & User_env & "; pwd = " & Pass_env & ";"
'---  Open   the above connection string.
'AdoError:

con.Open (strCon)

Open in new window

0
How to do Windows 10 Microsoft Visual Studio 2010 Multihreading (but not .net and not MFC) in C++03.
I don't have 3rd party tools like openMP, etc. Just have native Microsoft API (I hope).

I searched around and found an answer to the following 3 questions (included in my post below):
When I search online, I found this:
Multithreading with C and Win32
https://msdn.microsoft.com/en-us/library/y6h8hye8.aspx

But I am in a 64-bit environment.

a. Is there a Microsoft 64-bit (non .NET) multithreading capability? If not, then I will proceed with 32-bit API. But the applications being developed are 64-bit.

b. Is it OK to use Win32 in the 64-bit application?

c. If it is OK, are there any performance penalties or any other downsides in doing this?

If you explain things to me, and use POSIX terminology and their Microsoft equivalent, that would help. I have done Linux multithreading. I am brand new to Microsoft development (other than using VIsual Studio 2010 for relatively simple single-threaded programs).

Unfortunately, I cannot use C++11 or Boost because they will not be installed for awhile (anywhere between 6-90 months is my best guestimate).

I am unable to install anything to enhance my development. (I know - this sucks.)

1. I would appreciate if you could provide good learning examples and help me with some questions on the basics if they arise.

Here are some links that I have just  quickly …
0
Nothing ever in the clear!
LVL 1
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

I need to sharpen up my T-SQL and hope for an online practice site where I can query against a database local to the practice site, and choose to view and edit a library of existing queries.

Does this exist?

Thanks.
0
Please explain, from a C#.NET perspective, how those three go together?

Thanks
0
Hello, I am a daytrader in the futures market.  I have four strategies I had a developer create for me using the NinjaTrader version 7 platform.  I plan on marketing these as a bundle product.   I would like to know if any of your products can help me protect the further copying of the product once it is purchased.   The previous products I have purchased in the past from other day trading companies use the Machine ID validation.  Once the product is downloaded, before you can use it, you must have your Machine ID sent to them and it can only be used on that particular computer.   I am looking for that same effect.
0
I'm new to TFS. I have been using it for version control.  I wanted to take advantage of the bug/feature tracking, but it seems I can only create anew bug or feature for the entire "Repository Area"?


For example, I have repository $/Test   and under $/Test i have $/Test/MainProject   and $/Test/projectXYZ and $/Test/ProjectABC

All projects are part of the same main application, that is, projectXYZ is a class module for MainProject.

If I go to create a new bug task in TFS, it only allows me to select "$/Test" area.  I can't seem to find a way to tie the bug to a specific sub-folder in the repository, that is, a specific area of code?

Am I doing something completely wrong here?

(ps) I am not using Git for my repository, but TFS itself.
0
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
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
[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

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
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

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.