|
I have used this free tool on Windows 7 for years, https://www.codeproject.com/Articles/354/A-Utility-to-Clean-Up-Compiler-Temp-Files , it's useful.
I now want to use this utility to clean up compiler temp files on Windows 10, but after registered the DirClean.dll file, the two menu items do not show on the context menu. I check the source files, but I can't find what is wrong.
Thank you for help!
|
|
|
|
|
Please use the forum at the end of the article so the person who wrote the article can help you.
|
|
|
|
|
There is few reply in the article forum, so I start this thread here. Thanks!
|
|
|
|
|
If you knew the extensions that you wanted to routinely delete (e.g., obj, tmp, pdb), you could simply add them to a BAT file something like:
del /s *.obj
del /s *.tmp
...
Put the BAT file in the parent folder of your work area and run it when needed. You could even create a scheduled task to do it automatically.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Thank you for the alternative method. I will try the BAT file.
Can anyone find the reason why the free tool failed to work on Windows 10? Thanks!
|
|
|
|
|
i wanna ask, can anyone suggest any good tutorials references for learning C from the beginning, especially for the latest C version (C17, afaik) ?
refs can be web, e-books, or anything
note:
i tried google. found no tutorials for this.
|
|
|
|
|
C is a rather stable language, every standard doesn't add so many features like happens, for instance, with C++ , so you may find (of the tons available) a good tutorial on a previous version (e.g. C99 or C11 ) and start learning. Then, in order to complete your knowledge, you may access the freely available 'final draft of the standard' (external link in the very wikipedia page: C17 (C standard revision) - Wikipedia[^].
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
but there's errors in old syntax if we use old tutorials
coz, there's tutorials using old syntax of C and that's not used in today's C's syntax anymore
e.g.: i have K&R book and their example is like:
#include <stdio.h>
main () { }
that's why i'm looking more for tutor that suit with the latest C's syntax, which is C17
|
|
|
|
|
I didn't say it has not changed. It changed, but just a little. You haven't to go back to K&R. While probably there aren't yet many tutorials on the latest standard, there are many many available good ones for recent versions of it. That could be your fishing pond.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
ok, i guess i'll go for tutorials around 2015 and above
do you have any suggestions on this?
|
|
|
|
|
|
i searched more for C17 and not just C tutorials
coz, there's tutorials using old syntax of C and that's not used in today's C's syntax anymore
e.g.: i have K&R book and their example is like:
#include <stdio.h>
main () { }
i'm looking more for tutor that suit with the latest C's syntax, which is C17
|
|
|
|
|
|
|
ok, you have any suggested references for C tutorials? e-books, web, or anything...
|
|
|
|
|
Why do you need a tutorial? Read the latest K & R.
|
|
|
|
|
Try this video series: https://youtu.be/F3ntGDm6hOs
This is a "pre-introduction" series of 5 videos, to the Handmade Hero video series. HH is an ongoing series and may/may not be valuable to you, but the prelim is a good, fast intro that explains a bunch of concepts on Windows.
|
|
|
|
|
You got caught by the spam filter that put your message in moderation. Next time be a bit patient please instead of posting again.
I have let both messages through and deleted the other one.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
ic... maybe i was thought it got an error while posting...
|
|
|
|
|
I was trying to use win API
GetComputerObjectNameW as below but I am getting error. Can someone help me.
#include <iostream>
#include <atlbase.h>
#include <secext.h>
typedef enum {
NameUnknown,
NameFullyQualifiedDN,
NameSamCompatible,
NameDisplay,
NameUniqueId,
NameCanonical,
NameUserPrincipal,
NameCanonicalEx,
NameServicePrincipal,
NameDnsDomain,
NameGivenName,
NameSurname
} EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
int main()
{
EXTENDED_NAME_FORMAT enf = NameFullyQualifiedDN;
LPWSTR pwszComputerName;
DWORD dwLen;
dwLen = 0;
GetComputerObjectNameW(enf, NULL, &dwLen);
pwszComputerName = new WCHAR[dwLen + 1];
if(NULL == pwszComputerName)
{
return 0;
}
if(!GetComputerObjectNameW(NameSamCompatible, pwszComputerName, &dwLen))
{
delete pwszComputerName;
return 0;
}
sbstrTrustee = pwszComputerName;
wprintf(L"GetComputerObjectName: %s\n", pwszComputerName);
delete pwszComputerName;
}
Some of Error message is as below.
C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(117): error C2146: syntax error: missing ';' before identifier 'GetUserNameExA'
C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(121): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(126): error C2086: 'BOOLEAN SEC_ENTRY': redefinition
C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(117): note: see declaration of 'SEC_ENTRY'
C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(126): error C2146: syntax error: missing ';' before identifier 'GetUserNameExW'
C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(130): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
|
|
|
|
|
Why do you redefine the EXTENDED_NAME_FORMAT enumeration? 
|
|
|
|
|
I first try without defining enum after that try with enum. In both case I am getting compilation error.
|
|
|
|
|
Add these definition:
#define _WIN32_WINNT 0x0500
#define SECURITY_WIN32
Remove the redefinition of enum.
Define the sbstrTrustee variable.
// edited: also don't forget to include the Secur32.lib library.
|
|
|
|
|
Hi Victor,
I have modified program according to your suggestion but I am not getting expected result. I want to use NameFullyQualifiedDN enum value and get the fully qualified distinguished name (for example, CN=Jeff Smith,OU=Users,DC=Engineering,DC=Microsoft,DC=Com).
Regards,
Rajnesh
|
|
|
|
|
Sorry, I don't know what is wrong/correct in your test.
I've just tested your code and got the result in the form:
[my_domain_name].[my_computer_name]$
wich is in my case 100% correct.
|
|
|
|