Click here to Skip to main content
13,769,067 members

Windows API

 
GeneralRe: EvtChar and overlapped Readfile(serialport.... Pin
stefan dimitrov22-May-16 9:41
memberstefan dimitrov22-May-16 9:41 
GeneralRe: EvtChar and overlapped Readfile(serialport.... Pin
Richard MacCutchan22-May-16 21:46
protectorRichard MacCutchan22-May-16 21:46 
QuestionDesktop Shortcuts position at First Logon Pin
Jonathan Clerc18-May-16 3:29
memberJonathan Clerc18-May-16 3:29 
AnswerRe: Desktop Shortcuts position at First Logon Pin
Peter_in_278018-May-16 13:40
professionalPeter_in_278018-May-16 13:40 
QuestionWindows Desktop Align Icons To Grid Pin
Jim Thomson17-Mar-16 14:38
memberJim Thomson17-Mar-16 14:38 
SuggestionRe: Windows Desktop Align Icons To Grid Pin
Staffan Bruun2-May-16 22:32
professionalStaffan Bruun2-May-16 22:32 
GeneralRe: Windows Desktop Align Icons To Grid Pin
Jim Thomson3-May-16 2:34
memberJim Thomson3-May-16 2:34 
Questiona small problem with function Pin
VISWESWARAN199815-Mar-16 7:53
professionalVISWESWARAN199815-Mar-16 7: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 10:17
professionalRichard Andrew x6415-Mar-16 10:17 
GeneralRe: a small problem with function Pin
VISWESWARAN199816-Mar-16 8:06
professionalVISWESWARAN199816-Mar-16 8:06 
GeneralRe: a small problem with function Pin
Jochen Arndt16-Mar-16 8:20
mvpJochen Arndt16-Mar-16 8:20 
PraiseRe: a small problem with function Pin
VISWESWARAN199816-Mar-16 10:10
professionalVISWESWARAN199816-Mar-16 10:10 
AnswerRe: a small problem with function Pin
Graham Breach16-Mar-16 0:54
memberGraham Breach16-Mar-16 0:54 
PraiseRe: a small problem with function Pin
VISWESWARAN199816-Mar-16 10:10
professionalVISWESWARAN199816-Mar-16 10:10 
QuestionMicrosoft COM Pin
Stefan Bogdan11-Nov-15 23:35
memberStefan Bogdan11-Nov-15 23:35 
AnswerRe: Microsoft COM Pin
Richard Andrew x6412-Nov-15 4:12
professionalRichard Andrew x6412-Nov-15 4:12 
AnswerRe: Microsoft COM Pin
Eddy Vluggen12-Nov-15 4:25
professionalEddy Vluggen12-Nov-15 4:25 
AnswerRe: Microsoft COM Pin
Kunal Chowdhury «IN»4-Mar-16 0:01
mentorKunal Chowdhury «IN»4-Mar-16 0:01 
AnswerRe: Microsoft COM Pin
Munchies_Matt6-Apr-17 2:47
memberMunchies_Matt6-Apr-17 2:47 
QuestionClient Universall App WebApi Pin
Paolo Mazzon31-Oct-15 1:27
memberPaolo Mazzon31-Oct-15 1:27 
AnswerRe: Client Universall App WebApi Pin
Richard Deeming2-Nov-15 3:17
mvpRichard Deeming2-Nov-15 3:17 
GeneralRe: Client Universall App WebApi Pin
Paolo Mazzon2-Nov-15 19:52
memberPaolo Mazzon2-Nov-15 19:52 
QuestionUse CreatePrintAsyncNotifyChannel to communicate from Server Port to Client Driver Pin
Member 118933017-Aug-15 4:03
memberMember 118933017-Aug-15 4:03 
QuestionWindows 8.1 Event log problem Pin
zeki yugnak24-Jun-15 4:32
memberzeki yugnak24-Jun-15 4:32 
AnswerRe: Windows 8.1 Event log problem Pin
Nitzan Levi22-Aug-15 23:11
memberNitzan Levi22-Aug-15 23: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
Web05-2016 | 2.8.181117.1 | Last Updated 10 Feb 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid