Click here to Skip to main content
13,707,147 members

Windows API

 
GeneralRe: EvtChar and overlapped Readfile(serialport.... Pin
stefan dimitrov22-May-16 8:41
memberstefan dimitrov22-May-16 8:41 
GeneralRe: EvtChar and overlapped Readfile(serialport.... Pin
Richard MacCutchan22-May-16 20:46
protectorRichard MacCutchan22-May-16 20:46 
QuestionDesktop Shortcuts position at First Logon Pin
Jonathan Clerc18-May-16 2:29
memberJonathan Clerc18-May-16 2:29 
AnswerRe: Desktop Shortcuts position at First Logon Pin
Peter_in_278018-May-16 12:40
memberPeter_in_278018-May-16 12:40 
QuestionWindows Desktop Align Icons To Grid Pin
Jim Thomson17-Mar-16 13:38
memberJim Thomson17-Mar-16 13:38 
SuggestionRe: Windows Desktop Align Icons To Grid Pin
Staffan Bruun2-May-16 21:32
professionalStaffan Bruun2-May-16 21:32 
GeneralRe: Windows Desktop Align Icons To Grid Pin
Jim Thomson3-May-16 1:34
memberJim Thomson3-May-16 1:34 
Questiona small problem with function Pin
VISWESWARAN199815-Mar-16 6:53
professionalVISWESWARAN199815-Mar-16 6:53 
Sir, I have used a combination of GetLogicalDriveStrings and GetDriveType to add the strings of removable drive in the combo box.

In order to use the string for some iteration purpose I copied the string using GetDlgItemText function
wchar_t buf[10];
GetDlgItemText(hWnd, ID_COMBO, buf, 9);


buf contains the string of the removable drive e.g H:\

I am willing to find the no.of shortcuts found in my removable drive,

I have successfully achieved my will using FindFirstFile and FindNextFile functions but by using the maual locations like this
wchar_t* location = L"H:\\*lnk";


but when I use my buf like this I get an error

countOfShortcuts(wchar_t buffer[10])
{
   wchar_t location = buffer + "*lnk"
/*
then my code

*/
}

Here the function gets the "buf" value. I checked with a message box and found that the drive is correctly acquired with my function.

But I can't add it with some locations in order to do the iteration.

Error message:
Two pointers cannot be added

What I have tried:
This a quiet rare experience to me so I tired with strcpy, memcpy, adding * the & befor the buffer in this part "wchar_t location = buffer + "*lnk" but every thing is complicating the issues so I did considered to ask some help.


Thank you sir for your time
AnswerRe: a small problem with function Pin
Richard Andrew x6415-Mar-16 9:17
professionalRichard Andrew x6415-Mar-16 9:17 
GeneralRe: a small problem with function Pin
VISWESWARAN199816-Mar-16 7:06
professionalVISWESWARAN199816-Mar-16 7:06 
GeneralRe: a small problem with function Pin
Jochen Arndt16-Mar-16 7:20
mentorJochen Arndt16-Mar-16 7:20 
PraiseRe: a small problem with function Pin
VISWESWARAN199816-Mar-16 9:10
professionalVISWESWARAN199816-Mar-16 9:10 
AnswerRe: a small problem with function Pin
Graham Breach15-Mar-16 23:54
memberGraham Breach15-Mar-16 23:54 
PraiseRe: a small problem with function Pin
VISWESWARAN199816-Mar-16 9:10
professionalVISWESWARAN199816-Mar-16 9:10 
QuestionMicrosoft COM Pin
Stefan Bogdan11-Nov-15 22:35
memberStefan Bogdan11-Nov-15 22:35 
AnswerRe: Microsoft COM Pin
Richard Andrew x6412-Nov-15 3:12
professionalRichard Andrew x6412-Nov-15 3:12 
AnswerRe: Microsoft COM Pin
Eddy Vluggen12-Nov-15 3:25
professionalEddy Vluggen12-Nov-15 3:25 
AnswerRe: Microsoft COM Pin
Kunal Chowdhury «IN»3-Mar-16 23:01
mentorKunal Chowdhury «IN»3-Mar-16 23:01 
AnswerRe: Microsoft COM Pin
Munchies_Matt6-Apr-17 1:47
memberMunchies_Matt6-Apr-17 1:47 
QuestionClient Universall App WebApi Pin
Paolo Mazzon31-Oct-15 0:27
memberPaolo Mazzon31-Oct-15 0:27 
AnswerRe: Client Universall App WebApi Pin
Richard Deeming2-Nov-15 2:17
mvpRichard Deeming2-Nov-15 2:17 
GeneralRe: Client Universall App WebApi Pin
Paolo Mazzon2-Nov-15 18:52
memberPaolo Mazzon2-Nov-15 18:52 
QuestionUse CreatePrintAsyncNotifyChannel to communicate from Server Port to Client Driver Pin
7-Aug-15 3:03
member7-Aug-15 3:03 
QuestionWindows 8.1 Event log problem Pin
zeki yugnak24-Jun-15 3:32
memberzeki yugnak24-Jun-15 3:32 
AnswerRe: Windows 8.1 Event log problem Pin
Nitzan Levi22-Aug-15 22:11
memberNitzan Levi22-Aug-15 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180920.1 | Last Updated 10 Feb 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid